cartesian.hpp 967 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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_INDEX_CARTESIAN_HPP
  7. #define BOOST_GEOMETRY_STRATEGIES_INDEX_CARTESIAN_HPP
  8. #include <boost/geometry/strategies/distance/cartesian.hpp>
  9. #include <boost/geometry/strategies/index/services.hpp>
  10. namespace boost { namespace geometry { namespace strategies { namespace index
  11. {
  12. template <typename CalculationType = void>
  13. class cartesian
  14. : public distance::cartesian<CalculationType>
  15. {};
  16. namespace services
  17. {
  18. template <typename Geometry>
  19. struct default_strategy<Geometry, cartesian_tag>
  20. {
  21. using type = strategies::index::cartesian<>;
  22. };
  23. } // namespace services
  24. }}}} // namespace boost::geometry::strategy::index
  25. #endif // BOOST_GEOMETRY_STRATEGIES_INDEX_CARTESIAN_HPP