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::Vector3 Struct Reference
Collaboration diagram for Nxna::Vector3:
Collaboration graph
[legend]

Public Member Functions

 Vector3 (float x, float y, float z)
 
Vector3 operator* (float s) const
 
Vector3 operator* (const Vector3 &v) const
 
Vector3 operator/ (float s) const
 
Vector3 operator- (const Vector3 &v) const
 
Vector3 operator- () const
 
Vector3 operator+ (const Vector3 &v) const
 
void operator+= (const Vector3 &v)
 
void operator-= (const Vector3 &v)
 
void operator*= (float s)
 
void operator/= (float s)
 
float Length () const
 
float LengthSquared () const
 
void Normalize ()
 

Static Public Member Functions

static void Multiply (const Vector3 &v, float scaleFactor, Vector3 &result)
 
static void Dot (const Vector3 &v1, const Vector3 &v2, float &result)
 
static Vector3 Cross (const Vector3 &v1, const Vector3 &v2)
 
static void Cross (const Vector3 &v1, const Vector3 &v2, Vector3 &result)
 
static Vector3 Normalize (const Vector3 &v)
 
static void Normalize (const Vector3 &v, Vector3 &result)
 
static Vector3 Transform (const Vector3 &v, const Matrix &matrix)
 
static void Transform (const Vector3 &v, const Matrix &matrix, Vector3 &result)
 
static void Transform (const Vector3 &v, const Quaternion &quat, Vector3 &result)
 
static Vector3 TransformNormal (const Vector3 &normal, const Matrix &matrix)
 
static void TransformNormal (const Vector3 &normal, const Matrix &matrix, Vector3 &result)
 
static float Distance (const Vector3 &v1, const Vector3 &v2)
 
static float DistanceSquared (const Vector3 &v1, const Vector3 &v2)
 

Public Attributes

union {
   struct {
      float   X
 
      float   Y
 
      float   Z
 
   } 
 
   float   C [3]
 
}; 
 

Static Public Attributes

static const Vector3 Up
 
static const Vector3 Forward
 
static const Vector3 Zero
 
static const Vector3 Right
 
static const Vector3 UnitX
 
static const Vector3 UnitY
 
static const Vector3 UnitZ
 

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