Public Member Functions | |
Vector2 (float v) | |
Vector2 (float x, float y) | |
Vector2 | operator- () const |
Vector2 | operator* (float s) const |
Vector2 | operator/ (float s) const |
Vector2 | operator/ (const Vector2 &v) const |
Vector2 | operator* (const Vector2 &v) const |
Vector2 | operator+ (const Vector2 &v) const |
Vector2 | operator- (const Vector2 &v) const |
Vector2 | operator+= (const Vector2 &v) |
Vector2 | operator-= (const Vector2 &v) |
Vector2 | operator/= (float n) |
Vector2 | operator*= (float n) |
Vector2 | Rotate (float angle) const |
float | Length () const |
float | LengthSquared () const |
void | Normalize () |
Static Public Member Functions | |
static void | Dot (const Vector2 &v1, const Vector2 &v2, float &result) |
static float | Dot (const Vector2 &v1, const Vector2 &v2) |
static Vector2 | Normalize (const Vector2 &v) |
static void | Transform (const Vector2 &v, const Matrix &m, Vector2 &result) |
static float | Distance (const Vector2 &v1, const Vector2 &v2) |
static float | DistanceSquared (const Vector2 &v1, const Vector2 &v2) |
static void | DistanceSquared (const Vector2 &v1, const Vector2 &v2, float &result) |
static Vector2 | Lerp (const Vector2 &v1, const Vector2 &v2, float amount) |
static void | Lerp (const Vector2 &v1, const Vector2 &v2, float amount, Vector2 &result) |
Public Attributes | |
float | X |
float | Y |
Static Public Attributes | |
static const Vector2 & | Zero |
static const Vector2 & | One |
static const Vector2 & | UnitX |
static const Vector2 & | UnitY |