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 nw4r::math::VEC3 &v) | |
Constructs a new vector from an existing vector from the nw4r::math library. | |
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. | |
Public Member Functions inherited from nw4r::math::VEC3 | |
VEC3 (float fx, float fy, float fz) | |
Static Public Attributes | |
static mVec3_c | Zero = mVec3_c(0.0f, 0.0f, 0.0f) |
The null vector. | |
static mVec3_c | Ex = mVec3_c(1.0f, 0.0f, 0.0f) |
The unit vector for the X axis. | |
static mVec3_c | Ey = mVec3_c(0.0f, 1.0f, 0.0f) |
The unit vector for the Y axis. | |
static mVec3_c | Ez = mVec3_c(0.0f, 0.0f, 1.0f) |
The unit vector for the Z axis. | |
Additional Inherited Members | |
Public Attributes inherited from nw4r::math::_VEC3 | |
float | x |
float | y |
float | z |
|
inline |
|
inline |
|
inline |
|
inline |
Constructs a new vector from an existing vector from the nw4r::math library.
|
inline |
|
inline |
|
inline |
nw4r::math::VEC3 cast operator.
|
inline |
Const nw4r::math::VEC3 cast operator.
|
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 | ) |