![]() |
NDEVR
API Documentation
|
Common helper functions for easier interfacing with the OpenXR engine. More...
Static Public Member Functions | |
| static Vector< 3, Angle< fltp08 > > | ConvertFromQuaternion (const XrQuaternionf &quaternion) |
| Convert an OpenXR quaternion to Euler angles. | |
| static Vector< 3, Angle< fltp08 > > | ConvertFromQuaternion (fltp08 qx, fltp08 qy, fltp08 qz, fltp08 qw) |
| Convert quaternion components to Euler angles. | |
| static Vertex< 3, fltp04 > | ConvertVertex (const XrVector3f &position) |
| Convert an OpenXR position vector to the NDEVR coordinate system. | |
| static Vertex< 3, fltp08 > | ConvertVertex (fltp08 x, fltp08 y, fltp08 z) |
| Convert XYZ coordinates to the NDEVR coordinate system. | |
Common helper functions for easier interfacing with the OpenXR engine.
Definition at line 10 of file XRFunctions.h.
|
inlinestatic |
Convert an OpenXR quaternion to Euler angles.
| [in] | quaternion | The OpenXR quaternion orientation. |
Definition at line 32 of file XRFunctions.h.
References ConvertFromQuaternion().
Referenced by ConvertFromQuaternion().
|
inlinestatic |
Convert quaternion components to Euler angles.
| [in] | qx | X component of the quaternion. |
| [in] | qy | Y component of the quaternion. |
| [in] | qz | Z component of the quaternion. |
| [in] | qw | W component of the quaternion. |
Definition at line 42 of file XRFunctions.h.
References Angle< t_type >::asin(), Angle< t_type >::atan2(), DEGREES, PITCH, ROLL, and YAW.
Convert an OpenXR position vector to the NDEVR coordinate system.
| [in] | position | The OpenXR 3D position. |
Definition at line 16 of file XRFunctions.h.
Convert XYZ coordinates to the NDEVR coordinate system.
| [in] | x | X coordinate in OpenXR space. |
| [in] | y | Y coordinate in OpenXR space. |
| [in] | z | Z coordinate in OpenXR space. |
Definition at line 25 of file XRFunctions.h.