relops1.cpp 1.7 KB

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