|
Monado OpenXR Runtime
|
A 3 element vector with single floats. More...
#include <xrt/xrt_defines.h>

Data Fields | |
| float | x |
| float | y |
| float | z |
Related Functions | |
(Note that these are not member functions.) | |
| bool | math_vec3_validate (const struct xrt_vec3 *vec3) |
| Check if this vec3 is valid for math operations. More... | |
| void | math_vec3_accum (const struct xrt_vec3 *additional, struct xrt_vec3 *inAndOut) |
| Accumulate a vector by adding in-place. More... | |
| void | math_vec3_subtract (const struct xrt_vec3 *subtrahend, struct xrt_vec3 *inAndOut) |
| Subtract from a vector in-place. More... | |
| void | math_vec3_scalar_mul (float scalar, struct xrt_vec3 *inAndOut) |
| Multiply a vector in-place. More... | |
| void | math_vec3_cross (const struct xrt_vec3 *l, const struct xrt_vec3 *r, struct xrt_vec3 *result) |
| Cross product of a vector. More... | |
| void | math_vec3_translation_from_isometry (const struct xrt_matrix_4x4 *isometry, struct xrt_vec3 *result) |
| Get translation vector from isometry matrix (col-major). More... | |
| void | math_vec3_normalize (struct xrt_vec3 *in) |
| Normalize a vec3 in place. More... | |
| #define | XRT_VEC3_ZERO {0.f, 0.f, 0.f} |
| All-zero value for xrt_vec3. More... | |
| #define | XRT_VEC3_UNIT_X {1.f, 0.f, 0.f} |
Value for xrt_vec3 with 1 in the x coordinate. More... | |
| #define | XRT_VEC3_UNIT_Y {0.f, 1.f, 0.f} |
Value for xrt_vec3 with 1 in the y coordinate. More... | |
| #define | XRT_VEC3_UNIT_Z {0.f, 0.f, 1.f} |
Value for xrt_vec3 with 1 in the z coordinate. More... | |
A 3 element vector with single floats.
|
related |
Value for xrt_vec3 with 1 in the x coordinate.
|
related |
Value for xrt_vec3 with 1 in the y coordinate.
Referenced by svr_hmd_get_view_poses().
|
related |
Value for xrt_vec3 with 1 in the z coordinate.
|
related |
All-zero value for xrt_vec3.
Referenced by wmr_config_precompute_transforms().