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))
70 distanceResult.
clear();
75 BOOST_CHECK_CLOSE(distanceResult.
min_distance, 5.5, 1e-2);
76 BOOST_CHECK_CLOSE(o1[0], -6, 1e-2);
77 BOOST_CHECK_CLOSE(o1[1], 0.8, 1e-1);
78 BOOST_CHECK_CLOSE(o1[2], 1.5, 1e-2);
79 BOOST_CHECK_CLOSE(o2[0], -0.5, 1e-2);
80 BOOST_CHECK_CLOSE(o2[1], 0.8, 1e-1);
81 BOOST_CHECK_CLOSE(o2[2], 1.5, 1e-2);