Monado OpenXR Runtime
|
C interface to math library. More...
#include "xrt/xrt_defines.h"
Go to the source code of this file.
Macros | |
#define | MATH_GRAVITY_M_S2 (9.8066) |
Standard gravity acceleration constant. More... | |
Functions | |
size_t | math_hash_string (const char *str_c, size_t length) |
Generate a hash value from the given string, trailing zero not included. More... | |
void | math_quat_rotate_vec3 (const struct xrt_quat *left, const struct xrt_vec3 *right, struct xrt_vec3 *result) |
Rotate a vector. More... | |
void | math_quat_integrate_velocity (const struct xrt_quat *quat, const struct xrt_vec3 *ang_vel, float dt, struct xrt_quat *result) |
Integrate an angular velocity vector (exponential map) and apply to a quaternion. More... | |
void | math_quat_finite_difference (const struct xrt_quat *quat0, const struct xrt_quat *quat1, float dt, struct xrt_vec3 *out_ang_vel) |
Compute an angular velocity vector (exponential map format) by taking the finite difference of two quaternions. More... | |
void | math_matrix_3x3_transform_vec3 (const struct xrt_matrix_3x3 *left, const struct xrt_vec3 *right, struct xrt_vec3 *result) |
bool | math_compute_fovs (double w_total, double w_1, double horizfov_total, double h_total, double h_1, double vertfov_total, struct xrt_fov *fov) |
Perform the computations from "Computing Half-Fields-Of-View from Simpler Display Models", to get half-FOVs from things we can retrieve from other APIs. More... | |
C interface to math library.
void math_matrix_3x3_transform_vec3 | ( | const struct xrt_matrix_3x3 * | left, |
const struct xrt_vec3 * | right, | ||
struct xrt_vec3 * | result | ||
) |
References xrt_matrix_3x3::v.