Monado OpenXR Runtime
m_predict.h
Go to the documentation of this file.
1 // Copyright 2020-2021, Collabora, Ltd.
2 // SPDX-License-Identifier: BSL-1.0
3 /*!
4  * @file
5  * @brief Simple function to predict a new pose from a given pose.
6  * @author Jakob Bornecrantz <jakob@collabora.com>
7  * @ingroup aux_math
8  */
9 
10 #pragma once
11 
12 #include "xrt/xrt_defines.h"
13 
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 
20 /*!
21  * Using the given @p xrt_space_relation predicts a new @p xrt_space_relation
22  * @p delta_s into the future.
23  *
24  * Assumes that angular velocity is relative to the space the relation is in,
25  * not relative to relation::pose.
26  *
27  * @ingroup aux_math
28  */
29 void
30 m_predict_relation(const struct xrt_space_relation *rel, double delta_s, struct xrt_space_relation *out_rel);
31 
32 
33 #ifdef __cplusplus
34 }
35 #endif
void m_predict_relation(const struct xrt_space_relation *rel, double delta_s, struct xrt_space_relation *out_rel)
Using the given xrt_space_relation predicts a new xrt_space_relation delta_s into the future.
Definition: m_predict.c:106
A relation with two spaces, includes velocity and acceleration.
Definition: xrt_defines.h:657
Common defines and enums for XRT.