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 (float fx, float fy) | |
VEC2 (const VEC2 &v) | |
Additional Inherited Members | |
![]() | |
float | x |
float | 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.