Monado OpenXR Runtime
m_space.h File Reference

Functions for manipulating xrt_pose, xrt_space_relation and xrt_relation_chain structs. More...

#include "xrt/xrt_defines.h"
#include "math/m_api.h"
Include dependency graph for m_space.h:

Go to the source code of this file.

Functions

static bool m_pose_is_identity (const struct xrt_pose *pose)
 
static void m_space_relation_from_pose (const struct xrt_pose *pose, bool set_tracked, struct xrt_space_relation *out_relation)
 Create an xrt_space_relation from a pose. More...
 
static void m_space_relation_ident (struct xrt_space_relation *out_relation)
 Create an xrt_space_relation with only orientation and position valid flags. More...
 
void m_space_relation_invert (struct xrt_space_relation *relation, struct xrt_space_relation *out_relation)
 
void m_space_relation_interpolate (struct xrt_space_relation *a, struct xrt_space_relation *b, float t, enum xrt_space_relation_flags flags, struct xrt_space_relation *out_relation)
 Linearly interpolate between two relations a and b. More...
 

Detailed Description

Functions for manipulating xrt_pose, xrt_space_relation and xrt_relation_chain structs.

Author
Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m