Monado OpenXR Runtime
|
#include <north_star/distortion/utility_northstar.h>
Public Member Functions | |
Quaternion () | |
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 |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
References w, Vector3::x, x, Vector3::y, y, Vector3::z, and z.
Referenced by FromToRotation().
|
inline |
|
inlinestatic |
References w, Vector3::x, x, Vector3::y, y, Vector3::z, and z.
|
inline |
References Vector3::Forward().
|
inlinestatic |
References Matrix4x4::m00, Matrix4x4::m01, Matrix4x4::m02, Matrix4x4::m10, Matrix4x4::m11, Matrix4x4::m12, Matrix4x4::m20, Matrix4x4::m21, and Matrix4x4::m22.
Referenced by Pose::FromMatrix().
|
inlinestatic |
References Vector3::Angle(), AxisAngle(), Vector3::Cross(), and Vector3::Normalized().
|
inlinestatic |
Referenced by Pose::Identity(), and Pose::Pose().
|
inline |
Referenced by Pose::Inverse().
|
inlinestatic |
References Vector3::Cross(), Vector3::Dot(), Vector3::Forward(), Vector3::Normalized(), and Vector3::Up().
|
inline |
|
inline |
References Vector3::x, Vector3::y, and Vector3::z.
|
inline |
|
inline |
|
inline |
|
inlinestatic |
References Vector3::Cross(), Vector3::Normalized(), w, Vector3::x, x, Vector3::y, y, Vector3::z, and z.
|
inline |
References Vector3::Right().
|
inline |
|
inline |
|
inlinestatic |
|
inlinestatic |
References LP_PI, w, Vector3::x, x, Vector3::y, y, Vector3::z, and z.
|
inline |
Referenced by Pose::Matrix().
|
inline |
References Vector3::Up().
float Quaternion::w |
Referenced by AxisAngle(), Euler(), operator*(), operator=(), Quaternion(), QuaternionLookRotation(), ToEulerAngle(), and ToEulerAngles().
float Quaternion::x |
Referenced by AxisAngle(), Euler(), operator*(), operator=(), Quaternion(), QuaternionLookRotation(), ToEulerAngle(), and ToEulerAngles().
float Quaternion::y |
Referenced by AxisAngle(), Euler(), operator*(), operator=(), Quaternion(), QuaternionLookRotation(), ToEulerAngle(), and ToEulerAngles().
float Quaternion::z |
Referenced by AxisAngle(), Euler(), operator*(), operator=(), Quaternion(), QuaternionLookRotation(), ToEulerAngle(), and ToEulerAngles().