Monado OpenXR Runtime
m_space.cpp File Reference

Functions for manipulating a xrt_relation_chain struct. More...

#include "util/u_misc.h"
#include "math/m_api.h"
#include "math/m_vec2.h"
#include "math/m_vec3.h"
#include "math/m_space.h"
#include <stdio.h>
#include <assert.h>
Include dependency graph for m_space.cpp:

Data Structures

struct  flags
 

Functions

static void dump_relation (const struct xrt_space_relation *r)
 
static void dump_chain (const struct xrt_relation_chain *xrc)
 
static bool has_step_with_no_pose (const struct xrt_relation_chain *xrc)
 
flags get_flags (const struct xrt_space_relation *r)
 
static void make_valid_pose (flags flags, const struct xrt_pose *in_pose, struct xrt_pose *out_pose)
 
static void apply_relation (const struct xrt_space_relation *a, const struct xrt_space_relation *b, struct xrt_space_relation *out_relation)
 
void m_relation_chain_resolve (const struct xrt_relation_chain *xrc, struct xrt_space_relation *out_relation)
 
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 a xrt_relation_chain struct.

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