[geometry] merge of Boost.Geometry into release branch

[SVN r84242]
This commit is contained in:
Barend Gehrels
2013-05-12 10:58:26 +00:00
parent ab7f6c110b
commit 485923d149
198 changed files with 9808 additions and 766 deletions

View File

@@ -151,6 +151,10 @@ void test_3d()
BOOST_CHECK_EQUAL(bg::within(point_type(2, 4, 2), box), false);
BOOST_CHECK_EQUAL(bg::within(point_type(2, 2, 4), box), false);
BOOST_CHECK_EQUAL(bg::within(point_type(2, 2, 5), box), false);
box_type box2(point_type(2, 2, 2), point_type(3, 3, 3));
BOOST_CHECK_EQUAL(bg::within(box2, box), true);
}
template <typename P1, typename P2>
@@ -209,12 +213,15 @@ void test_strategy()
bool r = bg::within(p, b,
bg::strategy::within::point_in_box<point_type, box_type>());
BOOST_CHECK_EQUAL(r, true);
r = bg::within(b, b,
bg::strategy::within::box_in_box<box_type, box_type>());
BOOST_CHECK_EQUAL(r, false);
r = bg::within(p, b,
bg::strategy::within::point_in_box_by_side<point_type, box_type>());
BOOST_CHECK_EQUAL(r, true);
}