cartesian.hpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. // Boost.Geometry
  2. // Copyright (c) 2020, Oracle and/or its affiliates.
  3. // Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle
  4. // Licensed under the Boost Software License version 1.0.
  5. // http://www.boost.org/users/license.html
  6. #ifndef BOOST_GEOMETRY_STRATEGIES_CONVEX_HULL_CARTESIAN_HPP
  7. #define BOOST_GEOMETRY_STRATEGIES_CONVEX_HULL_CARTESIAN_HPP
  8. #include <boost/geometry/strategies/convex_hull/services.hpp>
  9. #include <boost/geometry/strategies/detail.hpp>
  10. #include <boost/geometry/strategy/cartesian/side_robust.hpp>
  11. namespace boost { namespace geometry
  12. {
  13. namespace strategies { namespace convex_hull
  14. {
  15. template <typename CalculationType = void>
  16. class cartesian : public strategies::detail::cartesian_base
  17. {
  18. public:
  19. static auto side()
  20. {
  21. return strategy::side::side_robust<CalculationType>();
  22. }
  23. };
  24. namespace services
  25. {
  26. template <typename Geometry>
  27. struct default_strategy<Geometry, cartesian_tag>
  28. {
  29. using type = strategies::convex_hull::cartesian<>;
  30. };
  31. } // namespace services
  32. }} // namespace strategies::convex_hull
  33. }} // namespace boost::geometry
  34. #endif // BOOST_GEOMETRY_STRATEGIES_CONVEX_HULL_CARTESIAN_HPP