1 #ifndef INVDYNEIGENINTERFACE_HPP_
2 #define INVDYNEIGENINTERFACE_HPP_
3 #include "../IDConfig.hpp"
4 namespace btInverseDynamics
6 #define BT_ID_HAVE_MAT3X
8 #ifdef BT_USE_DOUBLE_PRECISION
9 typedef Eigen::Matrix<double, Eigen::Dynamic, 1, Eigen::DontAlign> vecx;
10 typedef Eigen::Matrix<double, 3, 1, Eigen::DontAlign> vec3;
11 typedef Eigen::Matrix<double, 3, 3, Eigen::DontAlign> mat33;
12 typedef Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic, Eigen::DontAlign> matxx;
13 typedef Eigen::Matrix<double, 3, Eigen::Dynamic, Eigen::DontAlign> mat3x;
15 typedef Eigen::Matrix<float, Eigen::Dynamic, 1, Eigen::DontAlign> vecx;
16 typedef Eigen::Matrix<float, 3, 1, Eigen::DontAlign> vec3;
17 typedef Eigen::Matrix<float, 3, 3, Eigen::DontAlign> mat33;
18 typedef Eigen::Matrix<float, Eigen::Dynamic, Eigen::Dynamic, Eigen::DontAlign> matxx;
19 typedef Eigen::Matrix<float, 3, Eigen::Dynamic, Eigen::DontAlign> mat3x;
22 inline void resize(mat3x &m, Eigen::Index size)
28 inline void setMatxxElem(const idArrayIdx row, const idArrayIdx col, const idScalar val, matxx *m)
33 inline void setMat3xElem(const idArrayIdx row, const idArrayIdx col, const idScalar val, mat3x *m)
38 } // namespace btInverseDynamics
39 #endif // INVDYNEIGENINTERFACE_HPP_