mirror of
https://github.com/boostorg/geometry.git
synced 2026-02-27 17:12:10 +00:00
[tests] South hemispahre box-box tests
This commit is contained in:
@@ -239,6 +239,11 @@ void test_distance_box_box(Strategy_pp const& strategy_pp,
|
||||
ps_distance("POINT(10 20)", "SEGMENT(8 18, 8 22)", strategy_ps),
|
||||
strategy_bb);
|
||||
|
||||
std::string const box1m = "BOX(10 -20,20 -10)";
|
||||
tester::apply("bb10m", box1m, "BOX(4 -22, 8 -18)",
|
||||
ps_distance("POINT(10 20)", "SEGMENT(8 18, 8 22)", strategy_ps),
|
||||
strategy_bb);
|
||||
|
||||
tester::apply("bb10", box1, "BOX(4 20, 8 22)",
|
||||
ps_distance("POINT(10 20)", "SEGMENT(8 20, 8 22)", strategy_ps),
|
||||
strategy_bb);
|
||||
@@ -299,6 +304,14 @@ void test_distance_box_box(Strategy_pp const& strategy_pp,
|
||||
ps_distance("POINT(20 25)", "SEGMENT(30 -15, 30 30)", strategy_ps),
|
||||
strategy_bb);
|
||||
|
||||
tester::apply("bb-eq1b", "BOX(30 -15, 40 30)", "BOX(10 -20, 20 10)",
|
||||
ps_distance("POINT(30 -15)", "SEGMENT(20 10, 20 -20)", strategy_ps),
|
||||
strategy_bb);
|
||||
|
||||
tester::apply("bb-eq1bm", "BOX(30 -30, 40 15)", "BOX(10 -10, 20 20)",
|
||||
ps_distance("POINT(30 15)", "SEGMENT(20 -10, 20 20)", strategy_ps),
|
||||
strategy_bb);
|
||||
|
||||
tester::apply("bb-eq2", "BOX(30 -15, 40 20)", "BOX(10 -20, 20 25)",
|
||||
ps_distance("POINT(30 20)", "SEGMENT(20 -20, 20 25)", strategy_ps),
|
||||
strategy_bb);
|
||||
|
||||
Reference in New Issue
Block a user