Monado OpenXR Runtime
xrt_space_relation Struct Reference

A relation with two spaces, includes velocity and acceleration. More...

#include <xrt/xrt_defines.h>

Collaboration diagram for xrt_space_relation:

Data Fields

enum xrt_space_relation_flags relation_flags
 
struct xrt_pose pose
 
struct xrt_vec3 linear_velocity
 
struct xrt_vec3 angular_velocity
 

Related Functions

(Note that these are not member functions.)

#define XRT_SPACE_RELATION_ZERO
 A zero/identity value for xrt_space_relation. More...
 

Detailed Description

A relation with two spaces, includes velocity and acceleration.

See also
xrt_quat
xrt_vec3
xrt_pose
xrt_space_relation_flags

Friends And Related Function Documentation

◆ XRT_SPACE_RELATION_ZERO

#define XRT_SPACE_RELATION_ZERO
related
Value:
{ \
XRT_SPACE_RELATION_BITMASK_NONE, XRT_POSE_IDENTITY, XRT_VEC3_ZERO, XRT_VEC3_ZERO \
}

A zero/identity value for xrt_space_relation.

Note
Despite this initializing all members (to zero or identity), this sets the xrt_space_relation::relation_flags to XRT_SPACE_RELATION_BITMASK_NONE - so this is safe to assign before an error return, etc.

Referenced by qwerty_controller::qwerty_follow_hmd().


The documentation for this struct was generated from the following file: