20 #ifndef __EIGEN3_MATRIX_C_API_CC__
21 #define __EIGEN3_MATRIX_C_API_CC__
24 #if defined(__GNUC__) && !defined(__clang__)
25 # pragma GCC diagnostic ignored "-Wlogical-op"
28 #ifdef __EIGEN3_MATRIX_C_API_CC__
32 #include <Eigen/Dense>
37 using Eigen::Matrix4f;
41 Map<Matrix4f>
M = Map<Matrix4f>((
float *)matrix);
43 bool invertible =
true;
44 M.computeInverseWithCheck(
R, invertible, 0.0f);
48 memcpy(
inverse,
R.data(),
sizeof(
float) * 4 * 4);
btMatrix3x3 inverse() const
Return the inverse of the matrix.
bool EIG_invert_m4_m4(float inverse[4][4], const float matrix[4][4])