9 #define BOOST_TEST_DYN_LINK 10 #include <boost/test/unit_test.hpp> 11 #include "Grid/map_grid.hpp" 12 #include "data_type/aggregate.hpp" 13 #include "Vector/map_vector.hpp" 15 BOOST_AUTO_TEST_SUITE( sphere_test )
18 BOOST_AUTO_TEST_CASE( Sphere_test_use)
26 BOOST_REQUIRE_EQUAL(s.isInside(p1),
true);
27 BOOST_REQUIRE_EQUAL(s.isInside(p3),
false);
29 double dist = s.distance(p3);
30 BOOST_REQUIRE_EQUAL(dist,0.15980762113533162);
33 BOOST_AUTO_TEST_SUITE_END()
This class implement the point shape in an N-dimensional space.
This class implement the Sphere concept in an N-dimensional space.