25 #ifndef RAYLIB_CPP_INCLUDE_VECTOR3_HPP_
26 #define RAYLIB_CPP_INCLUDE_VECTOR3_HPP_
28 #ifndef RAYLIB_CPP_NO_MATH
32 #include "./raylib.hpp"
33 #include "./raymath.hpp"
34 #include "./raylib-cpp-utils.hpp"
49 set(ColorToHSV(color));
52 GETTERSETTER(
float, X, x)
53 GETTERSETTER(
float, Y, y)
54 GETTERSETTER(
float, Z, z)
67 #ifndef RAYLIB_CPP_NO_MATH
69 return Vector3Add(*
this, vector3);
73 return Vector3Add(*
this, vector3);
77 return Vector3Subtract(*
this, vector3);
81 return Vector3Subtract(*
this, vector3);
85 return Vector3Negate(*
this);
89 return Vector3Negate(*
this);
93 return Vector3Multiply(*
this, vector3);
97 return Vector3Multiply(*
this, vector3);
101 return Vector3Scale(*
this, scale);
105 return Vector3Scale(*
this, scale);
109 return Vector3Divide(*
this, vector3);
113 return Vector3Divide(*
this, vector3);
129 set(Vector3Add(*
this, vector3));
135 set(Vector3Subtract(*
this, vector3));
142 set(Vector3Multiply(*
this, vector3));
148 set(Vector3Scale(*
this, scale));
170 return Vector3Length(*
this);
174 return Vector3Normalize(*
this);
178 return Vector3DotProduct(*
this, vector3);
182 return Vector3Distance(*
this, vector3);
186 return Vector3Lerp(*
this, vector3, amount);
190 return Vector3CrossProduct(*
this, vector3);
194 return Vector3Perpendicular(*
this);
198 Vector3OrthoNormalize(
this, vector3);
202 return Vector3Transform(*
this, matrix);
206 return Vector3RotateByQuaternion(*
this, quaternion);
210 return Vector3Reflect(*
this, normal);
214 return Vector3Min(*
this, vector3);
218 return Vector3Max(*
this, vector3);
222 return Vector3Barycenter(*
this, a, b, c);
226 return Vector3Zero();
246 const ::Vector3& rotationAxis,
249 ::DrawCircle3D(*
this, radius, rotationAxis, rotationAngle, color);
254 ::DrawCube(*
this, width, height, length, color);
259 ::DrawCubeV(*
this, size, color);
269 ::DrawCubeWiresV(*
this, size, color);
274 const ::Texture2D& texture,
289 ::DrawSphereEx(*
this, radius, rings, slices, color);
299 int slices,
Color color) {
300 ::DrawCylinder(*
this, radiusTop, radiusBottom, height, slices, color);
305 int slices,
Color color) {
323 inline bool CheckCollision(
float radius1, const ::Vector3& center2,
float radius2) {
324 return CheckCollisionSpheres(*
this, radius1, center2, radius2);
328 inline void set(const ::Vector3& vec) {
336 #endif // RAYLIB_CPP_INCLUDE_VECTOR3_HPP_