• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Boost.Geometry
2 
3 // Copyright (c) 2019, Oracle and/or its affiliates.
4 
5 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
6 
7 // Licensed under the Boost Software License version 1.0.
8 // http://www.boost.org/users/license.html
9 
10 #include "test_relops.hpp"
11 
test_main(int,char * [])12 int test_main(int, char*[])
13 {
14     geom g;
15 
16     bg::disjoint(g.pt, g.b, bg::strategy::covered_by::cartesian_point_box());
17     bg::disjoint(g.pt, g.b, bg::strategy::covered_by::spherical_point_box());
18     bg::disjoint(g.b, g.b, bg::strategy::disjoint::cartesian_box_box());
19     bg::disjoint(g.b, g.b, bg::strategy::disjoint::spherical_box_box());
20     bg::within(g.pt, g.b, bg::strategy::within::cartesian_point_box());
21     bg::within(g.pt, g.b, bg::strategy::within::spherical_point_box());
22     bg::within(g.b, g.b, bg::strategy::within::cartesian_box_box());
23     bg::within(g.b, g.b, bg::strategy::within::spherical_box_box());
24     bg::covered_by(g.pt, g.b, bg::strategy::covered_by::cartesian_point_box());
25     bg::covered_by(g.pt, g.b, bg::strategy::covered_by::spherical_point_box());
26     bg::covered_by(g.b, g.b, bg::strategy::covered_by::cartesian_box_box());
27     bg::covered_by(g.b, g.b, bg::strategy::covered_by::spherical_box_box());
28 
29     // P/P
30     ::rel_pp(g.pt, g.pt);
31     ::rel_pp(g.pt, g.mpt);
32     ::rel_pp(g.mpt, g.mpt);
33 
34     // P/L
35     //::rel_ps(g.pt, g.s); // relate not implemented
36     ::rel_ps(g.pt, g.ls);
37     ::rel_ps(g.pt, g.mls);
38     //::rel_ps(g.mpt, g.s); // relate not implemented
39     ::rel_ps(g.mpt, g.ls);
40     ::rel_ps(g.mpt, g.mls);
41     // P/A
42     ::rel_ps(g.pt, g.r);
43     ::rel_ps(g.mpt, g.r);
44     ::rel_ps(g.pt, g.po);
45     ::rel_ps(g.mpt, g.po);
46     ::rel_ps(g.pt, g.mpo);
47     ::rel_ps(g.mpt, g.mpo);
48 
49     return 0;
50 }
51