Monado OpenXR Runtime
Quaternion Class Reference
Collaboration diagram for Quaternion:

Public Member Functions

 Quaternion (float _x, float _y, float _z, float _w)
 
 Quaternion (const Quaternion &_in)=default
 
Quaternionoperator= (const Quaternion &lhr)=default
 
Quaternion conjugate () const
 
float norm () const
 
Quaternion scale (float s) const
 
Quaternion Inverse () const
 
Vector3 Right () const
 
Vector3 Up () const
 
Vector3 Forward () const
 
Vector3 operator* (Vector3 const &vec) const
 
Matrix4x4 ToMatrix4x4 () const
 
Quaternion operator* (const Quaternion &q) const
 
Quaternion operator/ (const float div) const
 

Static Public Member Functions

static Quaternion Identity ()
 
static void ToEulerAngle (const Quaternion &q, float &roll, float &pitch, float &yaw)
 
static Vector3 ToEulerAngles (const Quaternion &in)
 
static Quaternion Euler (const Vector3 &euler)
 
static Quaternion AxisAngle (const Vector3 &axis, float angle)
 
static Quaternion LookAt (const Vector3 &sourcePoint, const Vector3 &destPoint)
 
static Quaternion QuaternionLookRotation (const Vector3 &forward, const Vector3 &Up)
 
static Quaternion FromMatrix (const Matrix4x4 &m)
 
static Quaternion FromToRotation (const Vector3 &dir0, const Vector3 &dir1)
 

Data Fields

float x
 
float y
 
float z
 
float w
 

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