1 #ifndef RAYLIB_CPP_VECTOR3_HPP_ 2 #define RAYLIB_CPP_VECTOR3_HPP_ 8 #ifndef RAYLIB_CPP_NO_MATH 16 #ifndef RAYLIB_CPP_NO_MATH 26 Vector3(
float X = 0,
float Y = 0,
float Z = 0) {
33 set(ColorToHSV(color));
41 GETTERSETTER(
float,X,x)
42 GETTERSETTER(
float,Y,y)
43 GETTERSETTER(
float,Z,z)
61 #ifndef RAYLIB_CPP_NO_MATH 63 return Vector3Add(*
this, vector3);
67 return Vector3Add(*
this, vector3);
71 return Vector3Subtract(*
this, vector3);
75 return Vector3Subtract(*
this, vector3);
79 return Vector3Negate(*
this);
83 return Vector3Negate(*
this);
87 return Vector3Multiply(*
this, vector3);
91 return Vector3Multiply(*
this, vector3);
95 return Vector3Scale(*
this, scale);
99 return Vector3Scale(*
this, scale);
103 return Vector3DivideV(*
this, vector3);
107 return Vector3DivideV(*
this, vector3);
111 return Vector3Divide(*
this, div);
115 return Vector3Divide(*
this, div);
119 set(Vector3Add(*
this, vector3));
125 set(Vector3Subtract(*
this, vector3));
132 set(Vector3Multiply(*
this, vector3));
138 set(Vector3Scale(*
this, scale));
144 set(Vector3DivideV(*
this, vector3));
150 set(Vector3Divide(*
this, div));
156 return Vector3Length(*
this);
160 return Vector3Normalize(*
this);
164 return Vector3DotProduct(*
this, vector3);
168 return Vector3Distance(*
this, vector3);
172 return Vector3Lerp(*
this, vector3, amount);
176 return Vector3CrossProduct(*
this, vector3);
180 return Vector3Perpendicular(*
this);
184 return Vector3OrthoNormalize(
this, vector3);
188 return Vector3Transform(*
this, matrix);
192 return Vector3RotateByQuaternion(*
this, quaternion);
196 return Vector3Reflect(*
this, normal);
200 return Vector3Min(*
this, vector3);
204 return Vector3Max(*
this, vector3);
208 return Vector3Barycenter(*
this, a, b, c);
212 return Vector3Zero();
229 ::DrawCircle3D(*
this, radius, rotationAxis, rotationAngle, color);
234 ::DrawCube(*
this, width, height, length, color);
238 ::DrawCubeV(*
this, size, color);
247 ::DrawCubeWiresV(*
this, size, color);
262 ::DrawSphereEx(*
this, radius, rings, slices, color);
272 ::DrawCylinder(*
this, radiusTop, radiusBottom, height, slices, color);
292 return CheckCollisionSpheres(*
this, radiusA, centerB, radiusB);
Vector3 Subtract(const Vector3 &vector3)
Vector3 & DrawPlane(::Vector2 size, ::Color color)
Vector3 Multiply(const Vector3 &vector3)
Vector3 Divide(const Vector3 &vector3)
Vector3 Reflect(const Vector3 &normal)
Vector3 & DrawSphere(float radius, Color color)
void OrthoNormalize(Vector3 *vector3)
Vector3 & DrawCylinderWires(float radiusTop, float radiusBottom, float height, int slices, Color color)
Vector3 Max(const Vector3 &vector3)
Vector3 Barycenter(const Vector3 &a, const Vector3 &b, const Vector3 &c)
Vector3 & DrawCircle3D(float radius, Vector3 rotationAxis, float rotationAngle, Color color)
Vector3 CrossProduct(const Vector3 &vector3)
Vector3 & operator-=(const Vector3 &vector3)
Vector3 Divide(const float div)
Vector3 operator+(const Vector3 &vector3)
Vector3 operator*(const float scale)
Vector3 & DrawSphereWires(float radius, int rings, int slices, Color color)
Vector3 operator/(const Vector3 &vector3)
Vector3 & DrawCubeWires(::Vector3 size, ::Color color)
Vector3 Add(const Vector3 &vector3)
Vector3 & operator=(const Vector3 &vector3)
Vector3 & DrawSphere(float radius, int rings, int slices, Color color)
Vector3 & DrawCylinder(float radiusTop, float radiusBottom, float height, int slices, Color color)
Vector3(float X=0, float Y=0, float Z=0)
Vector3 Min(const Vector3 &vector3)
Vector3 operator/(const float div)
Vector3 Transform(const ::Matrix &matrix)
bool operator==(const Vector3 &other)
Vector3 & operator*=(const Vector3 &vector3)
Vector3 & DrawCubeTexture(::Texture2D texture, float width, float height, float length, ::Color color)
Vector3 & operator/=(const float div)
Vector3 Scale(const float scale)
float DotProduct(const Vector3 &vector3)
Vector3 & DrawCube(::Vector3 size, ::Color color)
Vector3 RotateByQuaternion(Quaternion quaternion)
Vector3 & DrawCube(float width, float height, float length, ::Color color)
Provides all the classes associated with raylib-cpp.
Vector3 & DrawPoint3D(::Color color)
Vector3 & operator*=(const float scale)
Vector3 & DrawLine3D(::Vector3 endPos, ::Color color)
Vector3 & operator/=(const Vector3 &vector3)
Vector3 & DrawCubeWires(float width, float height, float length, ::Color color)
Vector3 & operator+=(const Vector3 &vector3)
Vector3 Lerp(const Vector3 &vector3, const float amount)
float Distance(const Vector3 &vector3)
bool CheckCollision(float radiusA, Vector3 centerB, float radiusB)
Vector3 operator*(const Vector3 &vector3)
Vector3 operator-(const Vector3 &vector3)