NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
|
#include <dol/mLib/m_vec.hpp>
A two-dimensional floating point vector.
Public Member Functions | |
mVec2_c () | |
Constructs an empty vector. | |
mVec2_c (const f32 *p) | |
Constructs a vector from a float array. | |
mVec2_c (f32 fx, f32 fy) | |
Constructs a vector from two floating point values. | |
mVec2_c (const Vec2 &v) | |
Constructs a new vector from an existing vector from the MTX library. | |
mVec2_c (const nw4r::math::VEC2 &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 Vec2 * () | |
Vec2 cast operator. | |
operator const Vec2 * () const | |
Const Vec2 cast operator. | |
operator nw4r::math::VEC2 * () | |
nw4r::math::VEC2 cast operator. | |
operator const nw4r::math::VEC2 * () const | |
Const nw4r::math::VEC2 cast operator. | |
mVec2_c & | operator+= (const mVec2_c &v) |
Augmented addition operator. | |
mVec2_c & | operator-= (const mVec2_c &v) |
Augmented subtraction operator. | |
mVec2_c & | operator*= (f32 f) |
Augmented scalar product operator. | |
mVec2_c & | operator/= (f32 f) |
Augmented scalar division operator. | |
mVec2_c | operator+ () const |
Positive operator. | |
mVec2_c | operator- () const |
Negative operator. | |
mVec2_c | operator+ (const mVec2_c &v) const |
Addition operator. | |
mVec2_c | operator- (const mVec2_c &v) const |
Subtraction operator. | |
mVec2_c | operator* (f32 f) const |
Scalar product operator. | |
mVec2_c | operator/ (f32 f) const |
Scalar division operator. | |
bool | operator== (const mVec2_c &v) const |
Equality operator. | |
bool | operator!= (const mVec2_c &v) const |
Inequality operator. | |
Public Attributes | |
float | x |
The coordinates on the X axis. | |
float | y |
The coordinates on the Y axis. | |
|
inline |
|
inline |
|
inline |
|
inline |
Constructs a new vector from an existing vector from the nw4r::math library.
|
inline |
|
inline |
|
inline |
nw4r::math::VEC2 cast operator.
|
inline |
Const nw4r::math::VEC2 cast operator.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |