The open source OpenXR runtime
at main 35 lines 722 B view raw
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 16extern "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 */ 29void 30m_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