Monado OpenXR Runtime
Vector3 Class Reference
Collaboration diagram for Vector3:

Public Member Functions

 Vector3 (const Vector3 &in)
 
 Vector3 (float _x, float _y, float _z)
 
 Vector3 (float _x, float _y)
 
constexpr Vector3operator= (const Vector3 &lhr)
 
Vector3 operator- (const Vector3 &rhs) const
 
Vector3 operator- () const
 
Vector3 operator+ (const Vector3 &rhs) const
 
Vector3operator+= (const Vector3 &v)
 
Vector3 operator/ (const float &d) const
 
Vector3 operator* (const float &d) const
 
Vector3 Inverse () const
 
float Dot (Vector3 const &rhs) const
 
float sqrMagnitude () const
 
float Magnitude () const
 
void Normalize ()
 
Vector3 Normalized () const
 
void rotate (const Vector3 &axis, float radians)
 
Vector3 Cross (const Vector3 &in) const
 

Static Public Member Functions

static Vector3 Up ()
 
static Vector3 Down ()
 
static Vector3 Left ()
 
static Vector3 Right ()
 
static Vector3 Forward ()
 
static Vector3 Backward ()
 
static float Dot (Vector3 const &lhs, Vector3 const &rhs)
 
static float Angle (const Vector3 &v0, const Vector3 &v1)
 
static Vector3 Zero ()
 
static Vector3 One ()
 
static Vector3 Reflect (const Vector3 &inDirection, const Vector3 &inNormal)
 

Data Fields

float x
 
float y
 
float z
 

The documentation for this class was generated from the following file: