cartesian.hpp 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. // Boost.Geometry
  2. // Copyright (c) 2020-2021, 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_HPP
  7. #define BOOST_GEOMETRY_STRATEGIES_CARTESIAN_HPP
  8. #include <boost/geometry/strategies/area/cartesian.hpp>
  9. #include <boost/geometry/strategies/azimuth/cartesian.hpp>
  10. #include <boost/geometry/strategies/convex_hull/cartesian.hpp>
  11. #include <boost/geometry/strategies/envelope/cartesian.hpp>
  12. #include <boost/geometry/strategies/expand/cartesian.hpp>
  13. #include <boost/geometry/strategies/io/cartesian.hpp>
  14. #include <boost/geometry/strategies/index/cartesian.hpp>
  15. #include <boost/geometry/strategies/relate/cartesian.hpp>
  16. namespace boost { namespace geometry
  17. {
  18. namespace strategies
  19. {
  20. template <typename CalculationType = void>
  21. class cartesian
  22. // derived from the umbrella strategy defining the most strategies
  23. : public strategies::index::cartesian<CalculationType>
  24. {
  25. public:
  26. static auto azimuth()
  27. {
  28. return strategy::azimuth::cartesian<CalculationType>();
  29. }
  30. static auto point_order()
  31. {
  32. return strategy::point_order::cartesian<CalculationType>();
  33. }
  34. };
  35. } // namespace strategies
  36. }} // namespace boost::geometry
  37. #endif // BOOST_GEOMETRY_STRATEGIES_CARTESIAN_HPP