spherical.hpp 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. // Boost.Geometry
  2. // Copyright (c) 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_IS_CONVEX_SPHERICAL_HPP
  7. #define BOOST_GEOMETRY_STRATEGIES_IS_CONVEX_SPHERICAL_HPP
  8. #include <boost/geometry/strategies/convex_hull/spherical.hpp>
  9. #include <boost/geometry/strategies/detail.hpp>
  10. #include <boost/geometry/strategies/is_convex/services.hpp>
  11. namespace boost { namespace geometry
  12. {
  13. namespace strategies { namespace is_convex
  14. {
  15. template <typename CalculationType = void>
  16. using spherical = strategies::convex_hull::spherical<CalculationType>;
  17. namespace services
  18. {
  19. template <typename Geometry>
  20. struct default_strategy<Geometry, spherical_equatorial_tag>
  21. {
  22. using type = strategies::is_convex::spherical<>;
  23. };
  24. template <typename CT>
  25. struct strategy_converter<strategy::side::spherical_side_formula<CT>>
  26. {
  27. static auto get(strategy::side::spherical_side_formula<CT> const& )
  28. {
  29. return strategies::is_convex::spherical<CT>();
  30. }
  31. };
  32. } // namespace services
  33. }} // namespace strategies::is_convex
  34. }} // namespace boost::geometry
  35. #endif // BOOST_GEOMETRY_STRATEGIES_IS_CONVEX_SPHERICAL_HPP