NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
|
#include <lib/egg/math/eggVector.h>
A two-dimensional floating point vector.
Definition at line 9 of file eggVector.h.
Public Member Functions | |
Vector2f () | |
Constructs an empty vector. | |
Vector2f (f32 fx, f32 fy) | |
Constructs a vector from two floating point values. | |
void | set (float x, float y) |
float | normalise () |
float | squaredLength () const |
Gets the squared length of the vector. | |
float | length () const |
Gets the length of the vector. | |
![]() | |
VEC2 (f32 fx, f32 fy) | |
operator f32 * () | |
operator const f32 * () const | |
VEC2 | operator+ (const VEC2 &rRhs) const |
VEC2 | operator- (const VEC2 &rRhs) const |
VEC2 & | operator+= (const VEC2 &rRhs) |
VEC2 & | operator-= (const VEC2 &rRhs) |
bool | operator== (const VEC2 &rRhs) const |
bool | operator!= (const VEC2 &rRhs) const |
Additional Inherited Members | |
![]() | |
f32 | x |
f32 | y |
|
inline |
Constructs an empty vector.
Definition at line 12 of file eggVector.h.
|
inline |
Definition at line 14 of file eggVector.h.
|
inline |
Constructs a vector from two floating point values.
Definition at line 17 of file eggVector.h.
|
inline |
Definition at line 19 of file eggVector.h.
|
inline |
Gets the squared length of the vector.
Definition at line 27 of file eggVector.h.
|
inline |
Gets the length of the vector.
Definition at line 30 of file eggVector.h.