monado/src/xrt/auxiliary/math/m_predict.h

36 lines
722 B
C
Raw Normal View History

// Copyright 2020-2021, Collabora, Ltd.
// SPDX-License-Identifier: BSL-1.0
/*!
* @file
* @brief Simple function to predict a new pose from a given pose.
* @author Jakob Bornecrantz <jakob@collabora.com>
* @ingroup aux_math
*/
#pragma once
#include "xrt/xrt_defines.h"
2021-09-14 12:12:18 +00:00
#ifdef __cplusplus
extern "C" {
#endif
/*!
* Using the given @p xrt_space_relation predicts a new @p xrt_space_relation
* @p delta_s into the future.
*
* Assumes that angular velocity is relative to the space the relation is in,
* not relative to relation::pose.
*
2021-02-08 20:18:17 +00:00
* @ingroup aux_math
*/
void
2021-01-14 14:13:48 +00:00
m_predict_relation(const struct xrt_space_relation *rel, double delta_s, struct xrt_space_relation *out_rel);
2021-09-14 12:12:18 +00:00
#ifdef __cplusplus
}
#endif