1 #define BOOST_TEST_MODULE COAL_COLLISION_NODE_ASSERT
3 #include <boost/test/included/unit_test.hpp>
4 #include <boost/math/constants/constants.hpp>
10 constexpr
CoalScalar pi = boost::math::constants::pi<CoalScalar>();
13 static double degToRad =
pi / 180.;
14 return deg * degToRad;
20 std::vector<Vec3s> triVertices{
Vec3s(1, 0, 0),
Vec3s(1, 1, 0),
22 std::vector<Triangle> triangle{{0, 1, 2}};
28 tri1.addSubModel(triVertices, triangle);
32 tri2.addSubModel(triVertices, triangle);
43 for (
int i = 0; i < 360; i += 30) {
44 for (
int j = 0; j < 180; j += 30) {
45 for (
int k = 0; k < 180; k += 30) {
49 tri2Tf.setQuatRotation(
55 BOOST_CHECK_NO_THROW(compute(tri2Tf, tri1Tf, request, result));