![]() |
raylib-cpp
C++ object-oriented wrapper library for raylib.
|
#include <Vector3.hpp>
Public Member Functions | |
Vector3 (::Color color) | |
Vector3 (const ::Vector3 &vec) | |
Vector3 (float x) | |
Vector3 (float x, float y) | |
Vector3 (float x, float y, float z) | |
Vector3 | Add (const ::Vector3 &vector3) const |
Add two vectors. More... | |
Vector3 | Barycenter (const ::Vector3 &a, const ::Vector3 &b, const ::Vector3 &c) const |
bool | CheckCollision (float radius1, const ::Vector3 ¢er2, float radius2) const |
Detect collision between two spheres. More... | |
Vector3 | CrossProduct (const ::Vector3 &vector3) const |
float | Distance (const ::Vector3 &vector3) const |
Vector3 | Divide (const ::Vector3 &vector3) const |
Divide vector by vector. More... | |
Vector3 | Divide (const float div) const |
Divide a vector by a value. More... | |
float | DotProduct (const ::Vector3 &vector3) const |
void | DrawCircle3D (float radius, const ::Vector3 &rotationAxis, Radian rotationAngle, Color color) const |
void | DrawCube (const ::Vector3 &size, ::Color color) const |
void | DrawCube (float width, float height, float length, ::Color color) const |
void | DrawCubeWires (const ::Vector3 &size, ::Color color) const |
void | DrawCubeWires (float width, float height, float length, ::Color color) const |
void | DrawCylinder (float radiusTop, float radiusBottom, float height, int slices, ::Color color) const |
void | DrawCylinderWires (float radiusTop, float radiusBottom, float height, int slices, ::Color color) const |
void | DrawLine3D (const ::Vector3 &endPos, ::Color color) const |
void | DrawPlane (const ::Vector2 &size, ::Color color) const |
void | DrawPoint3D (::Color color) const |
void | DrawSphere (float radius, ::Color color) const |
void | DrawSphere (float radius, int rings, int slices, ::Color color) const |
void | DrawSphereWires (float radius, int rings, int slices, ::Color color) const |
float | GetX () const |
Retrieves the x value for the object. More... | |
float | GetY () const |
Retrieves the y value for the object. More... | |
float | GetZ () const |
Retrieves the z value for the object. More... | |
float | Length () const |
Calculate vector length. More... | |
float | LengthSqr () const |
Calculate vector square length. More... | |
Vector3 | Lerp (const ::Vector3 &vector3, const float amount) const |
Vector3 | Max (const ::Vector3 &vector3) const |
Vector3 | Min (const ::Vector3 &vector3) const |
Vector3 | Multiply (const ::Vector3 &vector3) const |
Multiply vector by vector. More... | |
Vector3 | Negate () const |
Negate provided vector (invert direction) More... | |
Vector3 | Normalize () const |
operator std::string () const | |
bool | operator!= (const ::Vector3 &other) const |
Vector3 | operator* (const ::Vector3 &vector3) const |
Multiply vector by vector. More... | |
Vector3 | operator* (const float scaler) const |
Multiply vector by scalar. More... | |
Vector3 & | operator*= (const ::Vector3 &vector3) |
Multiply vector by vector. More... | |
Vector3 & | operator*= (const float scaler) |
Multiply vector by scalar. More... | |
Vector3 | operator+ (const ::Vector3 &vector3) const |
Add two vectors. More... | |
Vector3 & | operator+= (const ::Vector3 &vector3) |
Vector3 | operator- () const |
Negate provided vector (invert direction) More... | |
Vector3 | operator- (const ::Vector3 &vector3) const |
Subtract two vectors. More... | |
Vector3 & | operator-= (const ::Vector3 &vector3) |
Vector3 | operator/ (const ::Vector3 &vector3) const |
Divide vector by vector. More... | |
Vector3 | operator/ (const float div) const |
Divide a vector by a value. More... | |
Vector3 & | operator/= (const ::Vector3 &vector3) |
Divide vector by vector. More... | |
Vector3 & | operator/= (const float div) |
Divide a vector by a value. More... | |
Vector3 & | operator= (const ::Vector3 &vector3) |
bool | operator== (const ::Vector3 &other) const |
void | OrthoNormalize (::Vector3 *vector3) |
Vector3 | Perpendicular () const |
Vector3 | Project (const ::Vector3 &vector3) const |
Vector3 | Reflect (const ::Vector3 &normal) const |
Vector3 | Reject (const ::Vector3 &vector3) const |
Vector3 | RotateByQuaternion (const ::Quaternion &quaternion) const |
Vector3 | Scale (const float scaler) const |
Multiply vector by scalar. More... | |
void | SetX (float value) |
Sets the x value for the object. More... | |
void | SetY (float value) |
Sets the y value for the object. More... | |
void | SetZ (float value) |
Sets the z value for the object. More... | |
Vector3 | Subtract (const ::Vector3 &vector3) const |
Subtract two vectors. More... | |
std::string | ToString () const |
Vector3 | Transform (const ::Matrix &matrix) const |
Static Public Member Functions | |
static Vector3 | Back () |
static Vector3 | Down () |
static Vector3 | Forward () |
static Vector3 | Left () |
static Vector3 | One () |
static Vector3 | Right () |
static Vector3 | Up () |
static Vector3 | Zero () |
Protected Member Functions | |
void | set (const ::Vector3 &vec) |
Vector3 type.
Definition at line 19 of file Vector3.hpp.
|
inline |
Definition at line 21 of file Vector3.hpp.
|
inline |
Definition at line 23 of file Vector3.hpp.
|
inline |
Definition at line 24 of file Vector3.hpp.
|
inline |
Definition at line 25 of file Vector3.hpp.
|
inline |
Definition at line 26 of file Vector3.hpp.
|
inline |
Definition at line 28 of file Vector3.hpp.
|
inline |
Add two vectors.
Definition at line 63 of file Vector3.hpp.
|
inlinestatic |
Definition at line 312 of file Vector3.hpp.
|
inline |
Definition at line 280 of file Vector3.hpp.
|
inline |
Detect collision between two spheres.
Definition at line 378 of file Vector3.hpp.
|
inline |
Definition at line 240 of file Vector3.hpp.
|
inline |
Definition at line 232 of file Vector3.hpp.
|
inline |
|
inline |
Divide a vector by a value.
Definition at line 188 of file Vector3.hpp.
|
inline |
Definition at line 228 of file Vector3.hpp.
|
inlinestatic |
Definition at line 304 of file Vector3.hpp.
|
inline |
Definition at line 325 of file Vector3.hpp.
|
inline |
Definition at line 337 of file Vector3.hpp.
|
inline |
Definition at line 333 of file Vector3.hpp.
|
inline |
Definition at line 345 of file Vector3.hpp.
|
inline |
Definition at line 341 of file Vector3.hpp.
|
inline |
Definition at line 361 of file Vector3.hpp.
|
inline |
Definition at line 366 of file Vector3.hpp.
|
inline |
Definition at line 317 of file Vector3.hpp.
|
inline |
Definition at line 371 of file Vector3.hpp.
|
inline |
Definition at line 321 of file Vector3.hpp.
|
inline |
Definition at line 349 of file Vector3.hpp.
|
inline |
Definition at line 353 of file Vector3.hpp.
|
inline |
Definition at line 357 of file Vector3.hpp.
|
inlinestatic |
Definition at line 308 of file Vector3.hpp.
|
inline |
Retrieves the x value for the object.
Definition at line 32 of file Vector3.hpp.
|
inline |
Retrieves the y value for the object.
Definition at line 33 of file Vector3.hpp.
|
inline |
Retrieves the z value for the object.
Definition at line 34 of file Vector3.hpp.
|
inlinestatic |
Definition at line 292 of file Vector3.hpp.
|
inline |
Calculate vector length.
Definition at line 213 of file Vector3.hpp.
|
inline |
Calculate vector square length.
Definition at line 220 of file Vector3.hpp.
|
inline |
Definition at line 236 of file Vector3.hpp.
|
inline |
Definition at line 276 of file Vector3.hpp.
|
inline |
Definition at line 272 of file Vector3.hpp.
|
inline |
Multiply vector by vector.
Definition at line 117 of file Vector3.hpp.
|
inline |
Negate provided vector (invert direction)
Definition at line 103 of file Vector3.hpp.
|
inline |
Definition at line 224 of file Vector3.hpp.
|
inlinestatic |
Definition at line 288 of file Vector3.hpp.
|
inline |
Definition at line 55 of file Vector3.hpp.
|
inline |
Definition at line 47 of file Vector3.hpp.
|
inline |
Multiply vector by vector.
Definition at line 124 of file Vector3.hpp.
|
inline |
Multiply vector by scalar.
Definition at line 147 of file Vector3.hpp.
|
inline |
Multiply vector by vector.
Definition at line 131 of file Vector3.hpp.
|
inline |
Multiply vector by scalar.
Definition at line 154 of file Vector3.hpp.
|
inline |
Add two vectors.
Definition at line 70 of file Vector3.hpp.
|
inline |
Definition at line 74 of file Vector3.hpp.
|
inline |
Negate provided vector (invert direction)
Definition at line 110 of file Vector3.hpp.
|
inline |
Subtract two vectors.
Definition at line 90 of file Vector3.hpp.
|
inline |
Definition at line 94 of file Vector3.hpp.
|
inline |
Divide vector by vector.
Definition at line 170 of file Vector3.hpp.
|
inline |
|
inline |
Divide vector by vector.
Definition at line 177 of file Vector3.hpp.
|
inline |
Divide a vector by a value.
Definition at line 202 of file Vector3.hpp.
|
inline |
Definition at line 36 of file Vector3.hpp.
|
inline |
Definition at line 41 of file Vector3.hpp.
|
inline |
Definition at line 256 of file Vector3.hpp.
|
inline |
Definition at line 244 of file Vector3.hpp.
|
inline |
Definition at line 248 of file Vector3.hpp.
|
inline |
Definition at line 268 of file Vector3.hpp.
|
inline |
Definition at line 252 of file Vector3.hpp.
|
inlinestatic |
Definition at line 296 of file Vector3.hpp.
|
inline |
Definition at line 264 of file Vector3.hpp.
|
inline |
Multiply vector by scalar.
Definition at line 140 of file Vector3.hpp.
|
inlineprotected |
Definition at line 383 of file Vector3.hpp.
|
inline |
Sets the x value for the object.
value | The value of which to set x to. |
Definition at line 32 of file Vector3.hpp.
|
inline |
Sets the y value for the object.
value | The value of which to set y to. |
Definition at line 33 of file Vector3.hpp.
|
inline |
Sets the z value for the object.
value | The value of which to set z to. |
Definition at line 34 of file Vector3.hpp.
|
inline |
Subtract two vectors.
Definition at line 83 of file Vector3.hpp.
|
inline |
Definition at line 51 of file Vector3.hpp.
|
inline |
Definition at line 260 of file Vector3.hpp.
|
inlinestatic |
Definition at line 300 of file Vector3.hpp.
|
inlinestatic |
Definition at line 284 of file Vector3.hpp.