The open source OpenXR runtime
0
fork

Configure Feed

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

a/math: Add missing extern C

+6 -6
+6 -6
src/xrt/auxiliary/math/m_base.cpp
··· 387 387 * 388 388 */ 389 389 390 - void 390 + extern "C" void 391 391 math_matrix_2x2_multiply(const struct xrt_matrix_2x2 *left, 392 392 const struct xrt_matrix_2x2 *right, 393 393 struct xrt_matrix_2x2 *result_out) ··· 493 493 map_matrix_3x3(*result) = m.inverse(); 494 494 } 495 495 496 - void 496 + extern "C" void 497 497 math_matrix_4x4_identity(struct xrt_matrix_4x4 *result) 498 498 { 499 499 map_matrix_4x4(*result) = Eigen::Matrix4f::Identity(); 500 500 } 501 501 502 - void 502 + extern "C" void 503 503 math_matrix_4x4_multiply(const struct xrt_matrix_4x4 *left, 504 504 const struct xrt_matrix_4x4 *right, 505 505 struct xrt_matrix_4x4 *result) ··· 507 507 map_matrix_4x4(*result) = copy(left) * copy(right); 508 508 } 509 509 510 - void 510 + extern "C" void 511 511 math_matrix_4x4_view_from_pose(const struct xrt_pose *pose, struct xrt_matrix_4x4 *result) 512 512 { 513 513 Eigen::Vector3f position = copy(&pose->position); ··· 519 519 map_matrix_4x4(*result) = transformation.matrix().inverse(); 520 520 } 521 521 522 - void 522 + extern "C" void 523 523 math_matrix_4x4_model(const struct xrt_pose *pose, const struct xrt_vec3 *size, struct xrt_matrix_4x4 *result) 524 524 { 525 525 Eigen::Vector3f position = copy(&pose->position); ··· 533 533 map_matrix_4x4(*result) = transformation.matrix(); 534 534 } 535 535 536 - void 536 + extern "C" void 537 537 math_matrix_4x4_inverse_view_projection(const struct xrt_matrix_4x4 *view, 538 538 const struct xrt_matrix_4x4 *projection, 539 539 struct xrt_matrix_4x4 *result)