Monado OpenXR Runtime
|
Public Member Functions | |
Quaternion (float _x, float _y, float _z, float _w) | |
Quaternion (const Quaternion &_in) | |
constexpr Quaternion & | operator= (const Quaternion &lhr) |
Quaternion | conjugate () |
float | norm () |
Quaternion | scale (float s) |
Quaternion | Inverse () |
Vector3 | Right () |
Vector3 | Up () |
Vector3 | Forward () |
Vector3 | operator* (Vector3 vec) |
Matrix4x4 | ToMatrix4x4 () |
Quaternion | operator* (const Quaternion &q) |
Quaternion | operator/ (const float div) |
float | SIGN (float x) |
float | NORM (float a, float b, float c, float d) |
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 (Vector3 axis, float angle) |
static Quaternion | LookAt (Vector3 sourcePoint, Vector3 destPoint) |
static Quaternion | QuaternionLookRotation (Vector3 forward, Vector3 Up) |
static Quaternion | FromMatrix (const Matrix4x4 m) |
static Quaternion | FromToRotation (Vector3 dir0, Vector3 dir1) |
Data Fields | |
float | x |
float | y |
float | z |
float | w |