A three-dimensional floating point vector.
- Todo
- Add EGG::vector3f operators.
Definition at line 100 of file m_vec.hpp.
|
| mVec3_c () |
| Constructs an empty vector.
|
|
| mVec3_c (const f32 *p) |
| Constructs a vector from a float array.
|
|
| mVec3_c (f32 fx, f32 fy, f32 fz) |
| Constructs a vector from three floating point values.
|
|
| mVec3_c (const Vec &v) |
| Constructs a new vector from an existing vector from the MTX library.
|
|
| mVec3_c (const nw4r::math::VEC3 &v) |
| Constructs a new vector from an existing vector from the NW4R library.
|
|
| mVec3_c (const mVec3_c &v) |
| Copy constructor.
|
|
| mVec3_c (const mVec3_c &v, float fz) |
| Copy constructor with a different Z value.
|
|
| mVec3_c (const mVec2_c &v, float fz) |
|
mVec3_c & | operator= (const mVec3_c &v) |
| Assignment operator.
|
|
| operator f32 * () |
| Float cast operator.
|
|
| operator const f32 * () const |
| Const float cast operator.
|
|
| operator Vec * () |
| Vec cast operator.
|
|
| operator const Vec * () const |
| Const Vec cast operator.
|
|
| operator nw4r::math::VEC3 * () |
| nw4r::math::VEC3 cast operator.
|
|
| operator const nw4r::math::VEC3 * () const |
| Const nw4r::math::VEC3 cast operator.
|
|
mVec3_c & | operator+= (const mVec3_c &v) |
| Augmented addition operator.
|
|
mVec3_c & | operator-= (const mVec3_c &v) |
| Augmented subtraction operator.
|
|
mVec3_c & | operator*= (f32 f) |
| Augmented scalar product operator.
|
|
mVec3_c & | operator/= (f32 f) |
| Augmented scalar division operator.
|
|
mVec3_c | operator+ () const |
| Positive operator.
|
|
mVec3_c | operator- () const |
| Negative operator.
|
|
mVec3_c | operator+ (const mVec3_c &v) const |
| Addition operator.
|
|
mVec3_c | operator- (const mVec3_c &v) const |
| Subtraction operator.
|
|
mVec3_c | operator* (f32 f) const |
| Scalar product operator.
|
|
mVec3_c | operator/ (f32 f) const |
| Scalar division operator.
|
|
bool | operator== (const mVec3_c &v) const |
| Equality operator.
|
|
bool | operator!= (const mVec3_c &v) const |
| Inequality operator.
|
|
float | normalize () |
| Normalizes the vector.
|
|
bool | normalizeRS () |
| Normalizes the vector.
|
|
void | rotX (mAng angle) |
| Rotates the vector on the X axis by the given angle.
|
|
void | rotY (mAng angle) |
| Rotates the vector on the Y axis by the given angle.
|
|
| Vector3f () |
| Constructs an empty vector.
|
|
| Vector3f (f32 fx, f32 fy, f32 fz) |
| Constructs a vector from two floating point values.
|
|
void | set (float x, float y, float z) |
|
| VEC3 (float fx, float fy, float fz) |
|