37 #define BOOST_TEST_MODULE COAL_GEOMETRIC_SHAPES
38 #include <boost/test/included/unit_test.hpp>
40 #define CHECK_CLOSE_TO_0(x, eps) BOOST_CHECK_CLOSE((x + 1.0), (1.0), (eps))
73 BOOST_CHECK_CLOSE(distanceResult.
min_distance, 0.5, 1e-1);
74 BOOST_CHECK_CLOSE(o1[0], 1.0, 1e-1);
76 BOOST_CHECK_CLOSE(o2[0], 0.5, 1e-1);
84 distanceResult.
clear();
89 BOOST_CHECK_CLOSE(distanceResult.
min_distance, 2.0, 1e-1);
92 BOOST_CHECK_CLOSE(o1[2], 4.0, 1e-1);
96 BOOST_CHECK_CLOSE(o2[2], 2.0, 1e-1);
104 distanceResult.
clear();
109 BOOST_CHECK_CLOSE(distanceResult.
min_distance, 5.5, 1e-1);
110 BOOST_CHECK_CLOSE(o1[0], -6, 1e-2);
113 BOOST_CHECK_CLOSE(o2[0], -0.5, 1e-2);