mirror of
https://github.com/boostorg/geometry.git
synced 2026-02-10 23:42:12 +00:00
[geometry] merge of Boost.Geometry into release branch
[SVN r84242]
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user