cartesian.hpp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // Boost.Geometry
  2. // Copyright (c) 2025 Adam Wulkiewicz, Lodz, Poland.
  3. // Copyright (c) 2020-2021, Oracle and/or its affiliates.
  4. // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
  5. // Licensed under the Boost Software License version 1.0.
  6. // http://www.boost.org/users/license.html
  7. #ifndef BOOST_GEOMETRY_STRATEGIES_INDEX_CARTESIAN_HPP
  8. #define BOOST_GEOMETRY_STRATEGIES_INDEX_CARTESIAN_HPP
  9. #include <boost/geometry/strategies/centroid/cartesian.hpp>
  10. #include <boost/geometry/strategies/distance/cartesian.hpp>
  11. #include <boost/geometry/strategies/index/services.hpp>
  12. namespace boost { namespace geometry { namespace strategies { namespace index
  13. {
  14. template <typename CalculationType = void>
  15. class cartesian
  16. : public distance::cartesian<CalculationType>
  17. , public strategies::centroid::detail::cartesian<CalculationType>
  18. {};
  19. namespace services
  20. {
  21. template <typename Geometry>
  22. struct default_strategy<Geometry, cartesian_tag>
  23. {
  24. using type = strategies::index::cartesian<>;
  25. };
  26. } // namespace services
  27. }}}} // namespace boost::geometry::strategy::index
  28. #endif // BOOST_GEOMETRY_STRATEGIES_INDEX_CARTESIAN_HPP