60
60
#endif // COAL_HAS_OCTOMAP
61
61
62
62
namespace coal {
63
- #ifdef COAL_BACKWARD_COMPATIBILITY_WITH_HPP_FCL
64
- // We keep the FCL_REAL typedef and the Vec[..]f typedefs for backward
65
- // compatibility.
66
- #ifdef COAL_USE_DOUBLE_PRECISION
67
- typedef double FCL_REAL;
63
+ #ifdef COAL_USE_FLOAT_PRECISION
64
+ COAL_DEPRECATED typedef float CoalScalar;
65
+ typedef float Scalar;
68
66
#else
69
- typedef float FCL_REAL;
70
- #endif
71
- typedef Eigen::Matrix<FCL_REAL, 3 , 1 > Vec3f;
72
- typedef Eigen::Matrix<FCL_REAL, 2 , 1 > Vec2f;
73
- typedef Eigen::Matrix<FCL_REAL, 6 , 1 > Vec6f;
74
- typedef Eigen::Matrix<FCL_REAL, Eigen::Dynamic, 1 > VecXf;
75
- typedef Eigen::Matrix<FCL_REAL, 3 , 3 > Matrix3f;
76
- typedef Eigen::Matrix<FCL_REAL, Eigen::Dynamic, 3 , Eigen::RowMajor> Matrixx3f;
77
- typedef Eigen::Matrix<FCL_REAL, Eigen::Dynamic, 2 , Eigen::RowMajor> Matrixx2f;
78
- typedef Eigen::Matrix<FCL_REAL, Eigen::Dynamic, Eigen::Dynamic> MatrixXf;
79
- #endif
80
-
81
- #ifdef COAL_USE_DOUBLE_PRECISION
82
67
COAL_DEPRECATED typedef double CoalScalar;
83
68
typedef double Scalar;
84
- #else
85
- COAL_DEPRECATED typedef float CoalScalar;
86
- typedef float Scalar;
87
69
#endif
88
70
typedef Eigen::Matrix<Scalar, 3 , 1 > Vec3s;
89
71
typedef Eigen::Matrix<Scalar, 2 , 1 > Vec2s;
@@ -97,6 +79,20 @@ typedef Eigen::Matrix<Eigen::DenseIndex, Eigen::Dynamic, 3, Eigen::RowMajor>
97
79
typedef Eigen::Matrix<Scalar, Eigen::Dynamic, Eigen::Dynamic> MatrixXs;
98
80
typedef Eigen::Vector2i support_func_guess_t ;
99
81
82
+ #ifdef COAL_BACKWARD_COMPATIBILITY_WITH_HPP_FCL
83
+ // We keep the FCL_REAL typedef and the Vec[..]f typedefs for backward
84
+ // compatibility.
85
+ typedef Scalar FCL_REAL;
86
+ typedef Vec3s Vec3f;
87
+ typedef Vec2s Vec2f;
88
+ typedef Vec6s Vec6f;
89
+ typedef VecXs VecXf;
90
+ typedef Matrix3s Matrix3f;
91
+ typedef MatrixX3s Matrixx3f;
92
+ typedef MatrixX2s Matrixx2f;
93
+ typedef MatrixXs MatrixXf;
94
+ #endif
95
+
100
96
// / @brief Initial guess to use for the GJK algorithm
101
97
// / DefaultGuess: Vec3s(1, 0, 0)
102
98
// / CachedGuess: previous vector found by GJK or guess cached by the user
0 commit comments