Skyscraper 2.0
xr::math::Quaternion Namespace Reference

Functions

constexpr XrQuaternionf Identity ()
 
bool IsNormalized (const XrQuaternionf &quaternion)
 
XrQuaternionf RotationAxisAngle (const XrVector3f &axis, float angleInRadians)
 
XrQuaternionf RotationRollPitchYaw (const XrVector3f &eulerAnglesInRadians)
 
XrQuaternionf Slerp (const XrQuaternionf &a, const XrQuaternionf &b, float alpha)
 
float Length (const XrQuaternionf &quaternion)
 

Function Documentation

◆ Identity()

XrQuaternionf xr::math::Quaternion::Identity ( )
inlineconstexpr

Definition at line 404 of file XrMath.h.

◆ IsNormalized()

bool xr::math::Quaternion::IsNormalized ( const XrQuaternionf & quaternion)
inline

Definition at line 413 of file XrMath.h.

References Length(), and xr::math::QuaternionEpsilon.

Here is the call graph for this function:

◆ Length()

float xr::math::Quaternion::Length ( const XrQuaternionf & quaternion)
inline

Definition at line 408 of file XrMath.h.

References xr::math::LoadXrQuaternion().

Referenced by IsNormalized().

Here is the call graph for this function:

◆ RotationAxisAngle()

XrQuaternionf xr::math::Quaternion::RotationAxisAngle ( const XrVector3f & axis,
float angleInRadians )
inline

Definition at line 417 of file XrMath.h.

References xr::math::LoadXrVector3(), and xr::math::StoreXrQuaternion().

Here is the call graph for this function:

◆ RotationRollPitchYaw()

XrQuaternionf xr::math::Quaternion::RotationRollPitchYaw ( const XrVector3f & eulerAnglesInRadians)
inline

Definition at line 423 of file XrMath.h.

References xr::math::StoreXrQuaternion().

Here is the call graph for this function:

◆ Slerp()

XrQuaternionf xr::math::Quaternion::Slerp ( const XrQuaternionf & a,
const XrQuaternionf & b,
float alpha )
inline

Definition at line 429 of file XrMath.h.

References xr::math::LoadXrQuaternion(), and xr::math::StoreXrQuaternion().

Here is the call graph for this function: