|
NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
|
#include <game/mLib/m_vec.hpp>
A three-dimensional floating point vector.
Public Member Functions | |
| 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 mVec3_c &v) | |
| Copy constructor. | |
| 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, 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. | |
| mVec3_c & | operator= (const nw4r::math::VEC3 &v) |
| 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 | xzLen () const |
| short | xzAng () const |
| float | distTo (const mVec3_c &other) const |
| 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. | |
Static Public Attributes | |
| static mVec3_c | Zero |
| The null vector. | |
| static mVec3_c | Ex |
| The unit vector for the X axis. | |
| static mVec3_c | Ey |
| The unit vector for the Y axis. | |
| static mVec3_c | Ez |
| The unit vector for the Z axis. | |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| float mVec3_c::normalize | ( | ) |
| bool mVec3_c::normalizeRS | ( | ) |
| void mVec3_c::rotX | ( | mAng | angle | ) |
| void mVec3_c::rotY | ( | mAng | angle | ) |
|
static |
|
static |