Monado OpenXR Runtime
|
A tightly packed 4x4 matrix of floats. More...
#include <xrt/xrt_defines.h>
Data Fields | |
float | v [16] |
Related Functions | |
(Note that these are not member functions.) | |
void | math_matrix_3x3_rotation_from_isometry (const struct xrt_matrix_4x4 *isometry, struct xrt_matrix_3x3 *result) |
Get the rotation matrix from an isomertry matrix (col-major). More... | |
void | math_matrix_4x4_identity (struct xrt_matrix_4x4 *result) |
Initialize Matrix4x4 with identity. More... | |
void | math_matrix_4x4_multiply (const struct xrt_matrix_4x4 *left, const struct xrt_matrix_4x4 *right, struct xrt_matrix_4x4 *result) |
Multiply Matrix4x4. More... | |
void | math_matrix_4x4_inverse (const struct xrt_matrix_4x4 *in, struct xrt_matrix_4x4 *result) |
Invert Matrix4x4. More... | |
void | math_matrix_4x4_isometry_inverse (const struct xrt_matrix_4x4 *in, struct xrt_matrix_4x4 *result) |
Invert a homogeneous isometry 4x4 (col-major) matrix in SE(3). More... | |
void | math_matrix_4x4_transpose (const struct xrt_matrix_4x4 *in, struct xrt_matrix_4x4 *result) |
Transpose Matrix4x4. More... | |
void | math_matrix_4x4_view_from_pose (const struct xrt_pose *pose, struct xrt_matrix_4x4 *result) |
Compute view matrix from xrt_pose. More... | |
void | math_matrix_4x4_isometry_from_rt (const struct xrt_matrix_3x3 *rotation, const struct xrt_vec3 *translation, struct xrt_matrix_4x4 *result) |
Get an isometry matrix —in SE(3)— from a rotation matrix —SO(3)— and a translation vector. More... | |
void | math_matrix_4x4_isometry_from_pose (const struct xrt_pose *pose, struct xrt_matrix_4x4 *result) |
Get a col-major isometry matrix —in SE(3)— from a pose. More... | |
void | math_matrix_4x4_model (const struct xrt_pose *pose, const struct xrt_vec3 *size, struct xrt_matrix_4x4 *result) |
Compute quad layer model matrix from xrt_pose and xrt_vec2 size. More... | |
void | math_matrix_4x4_inverse_view_projection (const struct xrt_matrix_4x4 *view, const struct xrt_matrix_4x4 *projection, struct xrt_matrix_4x4 *result) |
Compute inverse view projection matrix, using only the starting 3x3 block of the view. More... | |
void | math_matrix_4x4_projection_vulkan_infinite_reverse (const struct xrt_fov *fov, float near_plane, struct xrt_matrix_4x4 *result) |
Compute a projection matrix with settings for Vulkan, it will also have it's far plane at infinite and the NDC depth will be reversed. More... | |
A tightly packed 4x4 matrix of floats.