point_order.hpp 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. // Boost.Geometry
  2. // Copyright (c) 2019-2020, 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/strategy/cartesian/area.hpp>
  10. #include <boost/geometry/strategies/point_order.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. // TEMP
  21. static strategy::area::cartesian<CalculationType> get_area_strategy()
  22. {
  23. return strategy::area::cartesian<CalculationType>();
  24. }
  25. };
  26. namespace services
  27. {
  28. template <>
  29. struct default_strategy<cartesian_tag>
  30. {
  31. typedef cartesian<> type;
  32. };
  33. } // namespace services
  34. }} // namespace strategy::point_order
  35. }} // namespace boost::geometry
  36. #endif // BOOST_GEOMETRY_STRATEGIES_CARTESIAN_POINT_ORDER_HPP