#include <FMVector2.h>
Public Member Functions | |
FMVector2 () | |
Creates an empty FMVector2. | |
FMVector2 (float _u, float _v) | |
Creates the vector with the coordinates given. | |
float | LengthSquared () const |
Retrieves the squared length of the vector. | |
float | Length () const |
Retrieves the length of the vector. | |
void | NormalizeIt () |
Normalizes this vector. | |
FMVector2 | Normalize () const |
Get a normalized vector with the same direction as this vector. | |
operator float * () | |
Get this vector as an array of floats . | |
FMVector2 & | operator+= (const FMVector2 &a) |
Adds two vector. | |
FMVector2 & | operator *= (float a) |
Multiplies this vector by a scaler. | |
FMVector2 & | operator= (const float *f) |
Assign this vector to the given float array. | |
Static Public Attributes | |
static const FMVector2 | Zero |
The zero vector. | |
static const FMVector2 | Origin |
The zero vector. | |
static const FMVector2 | XAxis |
The 2D X axis. | |
static const FMVector2 | YAxis |
The 2D Y axis. |
Not used within FCollada.
|
Creates the vector with the coordinates given.
|
|
Retrieves the length of the vector.
|
|
Retrieves the squared length of the vector.
|
|
Get a normalized vector with the same direction as this vector.
|
|
Multiplies this vector by a scaler. Multiplies each of this vector's coordinates with the scaler and returns this vector.
|
|
Get this vector as an array of
|
|
Adds two vector. Adds to this vector's coordinates the individual components of the given vector and returns this vector.
|
|
Assign this vector to the given float array.
Assigns each coordinate of this vector to the elements in the
|