point_order.hpp 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. #ifndef BOOST_GEOMETRY_STRATEGIES_CARTESIAN_POINT_ORDER_HPP
  7. #define BOOST_GEOMETRY_STRATEGIES_CARTESIAN_POINT_ORDER_HPP
  8. #include <boost/geometry/core/tags.hpp>
  9. #include <boost/geometry/strategies/point_order.hpp>
  10. #include <boost/geometry/strategies/cartesian/area.hpp>
  11. namespace boost { namespace geometry
  12. {
  13. namespace strategy { namespace point_order
  14. {
  15. template <typename CalculationType = void>
  16. struct cartesian
  17. : strategy::area::cartesian<CalculationType>
  18. {
  19. typedef area_tag version_tag;
  20. };
  21. namespace services
  22. {
  23. template <>
  24. struct default_strategy<cartesian_tag>
  25. {
  26. typedef cartesian<> type;
  27. };
  28. } // namespace services
  29. }} // namespace strategy::point_order
  30. }} // namespace boost::geometry
  31. #endif // BOOST_GEOMETRY_STRATEGIES_CARTESIAN_POINT_ORDER_HPP