Magnum::OvrIntegration::PoseState class

A full rigid body pose with first and second derivatives.

Public static functions

static auto wrap(::ovrPoseStatef& state) -> PoseState&
Wrap a ovrPoseStatef as PoseState.
static auto wrap(const ::ovrPoseStatef& state) -> const PoseState&

Constructors, destructors, conversion operators

PoseState()
Constructor.
PoseState(const ovrPoseStatef& state)
Constructor with initial ovrPoseStatef

Public functions

auto pose() const -> DualQuaternion
Position and orientation.
auto angularVelocity() const -> Vector3
Angular velocity in radians per second.
auto LinearVelocity() const -> Vector3
Velocity in meters per second.
auto angularAcceleration() const -> Vector3
Angular acceleration in radians per second per second.
auto linearAcceleration() const -> Vector3
Acceleration in meters per second per second.
auto time() const -> Double
Absolute time that this pose refers to (in seconds)
auto ovrPoseStatef() -> ::ovrPoseStatef&
The underlying ovrPoseStatef

Function documentation

static PoseState& Magnum::OvrIntegration::PoseState::wrap(::ovrPoseStatef& state)

Wrap a ovrPoseStatef as PoseState.

Returns state as PoseState reference

static const PoseState& Magnum::OvrIntegration::PoseState::wrap(const ::ovrPoseStatef& state)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Magnum::OvrIntegration::PoseState::PoseState()

Constructor.

Default initializes underlying ovrPoseStatef.

Magnum::OvrIntegration::PoseState::PoseState(const ovrPoseStatef& state)

Constructor with initial ovrPoseStatef

Initializes underlying ovrPoseStatef with given state.