Skyscraper 2.0
xr::math::Pose Namespace Reference

Functions

constexpr XrPosef Identity ()
 
constexpr XrPosef Translation (const XrVector3f &translation)
 
XrPosef LookAt (const XrVector3f &origin, const XrVector3f &forward, const XrVector3f &up)
 
XrPosef Multiply (const XrPosef &a, const XrPosef &b)
 
XrPosef Slerp (const XrPosef &a, const XrPosef &b, float alpha)
 
XrPosef Invert (const XrPosef &pose)
 
constexpr bool IsPoseValid (const XrSpaceLocation &location)
 
constexpr bool IsPoseTracked (const XrSpaceLocation &location)
 
constexpr bool IsPoseValid (const XrHandJointLocationEXT &jointLocation)
 
constexpr bool IsPoseTracked (const XrHandJointLocationEXT &jointLocation)
 
constexpr bool IsPoseValid (const XrViewState &viewState)
 
constexpr bool IsPoseTracked (const XrViewState &viewState)
 
template<typename Quaternion , typename Vector3 >
XrPosef MakePose (const Quaternion &orientation, const Vector3 &position)
 
constexpr bool IsPoseValid (XrSpaceLocationFlags locationFlags)
 
constexpr bool IsPoseTracked (XrSpaceLocationFlags locationFlags)
 

Function Documentation

◆ Identity()

XrPosef xr::math::Pose::Identity ( )
constexpr

Definition at line 302 of file XrMath.h.

Referenced by Ogre::OpenXRState::initializeSession(), and Translation().

◆ Invert()

XrPosef xr::math::Pose::Invert ( const XrPosef & pose)
inline

Definition at line 325 of file XrMath.h.

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

Referenced by xr::math::LoadInvertedXrPose().

Here is the call graph for this function:

◆ IsPoseTracked() [1/4]

bool xr::math::Pose::IsPoseTracked ( const XrHandJointLocationEXT & jointLocation)
constexpr

Definition at line 383 of file XrMath.h.

References IsPoseTracked().

Here is the call graph for this function:

◆ IsPoseTracked() [2/4]

bool xr::math::Pose::IsPoseTracked ( const XrSpaceLocation & location)
constexpr

Definition at line 375 of file XrMath.h.

References IsPoseTracked().

Referenced by IsPoseTracked(), and IsPoseTracked().

Here is the call graph for this function:

◆ IsPoseTracked() [3/4]

bool xr::math::Pose::IsPoseTracked ( const XrViewState & viewState)
constexpr

Definition at line 392 of file XrMath.h.

◆ IsPoseTracked() [4/4]

bool xr::math::Pose::IsPoseTracked ( XrSpaceLocationFlags locationFlags)
constexpr

Definition at line 365 of file XrMath.h.

◆ IsPoseValid() [1/4]

bool xr::math::Pose::IsPoseValid ( const XrHandJointLocationEXT & jointLocation)
constexpr

Definition at line 379 of file XrMath.h.

References IsPoseValid().

Here is the call graph for this function:

◆ IsPoseValid() [2/4]

bool xr::math::Pose::IsPoseValid ( const XrSpaceLocation & location)
constexpr

Definition at line 371 of file XrMath.h.

References IsPoseValid().

Referenced by IsPoseValid(), and IsPoseValid().

Here is the call graph for this function:

◆ IsPoseValid() [3/4]

bool xr::math::Pose::IsPoseValid ( const XrViewState & viewState)
constexpr

Definition at line 387 of file XrMath.h.

◆ IsPoseValid() [4/4]

bool xr::math::Pose::IsPoseValid ( XrSpaceLocationFlags locationFlags)
constexpr

Definition at line 360 of file XrMath.h.

◆ LookAt()

XrPosef xr::math::Pose::LookAt ( const XrVector3f & origin,
const XrVector3f & forward,
const XrVector3f & up )
inline

Definition at line 312 of file XrMath.h.

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

Here is the call graph for this function:

◆ MakePose()

template<typename Quaternion , typename Vector3 >
XrPosef xr::math::Pose::MakePose ( const Quaternion & orientation,
const Vector3 & position )
inline

Definition at line 398 of file XrMath.h.

Referenced by Slerp().

◆ Multiply()

XrPosef xr::math::Pose::Multiply ( const XrPosef & a,
const XrPosef & b )
inline

Definition at line 338 of file XrMath.h.

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

Referenced by xr::math::operator*().

Here is the call graph for this function:

◆ Slerp()

XrPosef xr::math::Pose::Slerp ( const XrPosef & a,
const XrPosef & b,
float alpha )
inline

Definition at line 321 of file XrMath.h.

References MakePose().

Here is the call graph for this function:

◆ Translation()

XrPosef xr::math::Pose::Translation ( const XrVector3f & translation)
constexpr

Definition at line 306 of file XrMath.h.

References Identity().

Here is the call graph for this function: