Nxna2
 All Classes Namespaces Functions Enumerations Enumerator Pages
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Nxna::Vector2 Struct Reference
Collaboration diagram for Nxna::Vector2:
Collaboration graph
[legend]

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 Vector2Zero
 
static const Vector2One
 
static const Vector2UnitX
 
static const Vector2UnitY
 

The documentation for this struct was generated from the following files: