cartesian.hpp 1002 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // Boost.Geometry
  2. // Copyright (c) 2021-2022, 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_BUFFER_CARTESIAN_HPP
  7. #define BOOST_GEOMETRY_STRATEGIES_BUFFER_CARTESIAN_HPP
  8. #include <boost/geometry/strategies/buffer/services.hpp>
  9. #include <boost/geometry/strategies/distance/cartesian.hpp>
  10. namespace boost { namespace geometry
  11. {
  12. namespace strategies { namespace buffer
  13. {
  14. template <typename CalculationType = void>
  15. struct cartesian
  16. : public strategies::distance::cartesian<CalculationType>
  17. {};
  18. namespace services
  19. {
  20. template <typename Geometry>
  21. struct default_strategy<Geometry, cartesian_tag>
  22. {
  23. using type = strategies::buffer::cartesian<>;
  24. };
  25. } // namespace services
  26. }} // namespace strategies::buffer
  27. }} // namespace boost::geometry
  28. #endif // BOOST_GEOMETRY_STRATEGIES_BUFFER_CARTESIAN_HPP