The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

a/math: Add math_matrix_3x3_identity()

Add an initialisation function to set a 3x3 matrix
to the identity matrix.

+15
+9
src/xrt/auxiliary/math/m_api.h
··· 318 318 const struct xrt_matrix_2x2 *right, 319 319 struct xrt_matrix_2x2 *result_out); 320 320 321 + /*! 322 + * Initialize a 3x3 matrix to the identity matrix 323 + * 324 + * @see xrt_matrix_3x3 325 + * @ingroup aux_math 326 + */ 327 + void 328 + math_matrix_3x3_identity(struct xrt_matrix_3x3 *mat); 329 + 321 330 void 322 331 math_matrix_3x3_transform_vec3(const struct xrt_matrix_3x3 *left, 323 332 const struct xrt_vec3 *right,
+6
src/xrt/auxiliary/math/m_base.cpp
··· 365 365 } 366 366 367 367 extern "C" void 368 + math_matrix_3x3_identity(struct xrt_matrix_3x3 *mat) 369 + { 370 + mat->v[0] = mat->v[4] = mat->v[8] = 1.0; 371 + } 372 + 373 + extern "C" void 368 374 math_matrix_3x3_transform_vec3(const struct xrt_matrix_3x3 *left, 369 375 const struct xrt_vec3 *right, 370 376 struct xrt_vec3 *result_out)