spherical.hpp 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // Boost.Geometry
  2. // Copyright (c) 2020, Oracle and/or its affiliates.
  3. // Contributed and/or modified by Vissarion Fysikopoulos, 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_CONVEX_HULL_SPHERICAL_HPP
  7. #define BOOST_GEOMETRY_STRATEGIES_CONVEX_HULL_SPHERICAL_HPP
  8. #include <boost/geometry/strategies/convex_hull/services.hpp>
  9. #include <boost/geometry/strategies/detail.hpp>
  10. #include <boost/geometry/strategies/spherical/ssf.hpp>
  11. namespace boost { namespace geometry
  12. {
  13. namespace strategies { namespace convex_hull
  14. {
  15. template <typename CalculationType = void>
  16. class spherical : public strategies::detail::spherical_base<void>
  17. {
  18. public:
  19. static auto side()
  20. {
  21. return strategy::side::spherical_side_formula<CalculationType>();
  22. }
  23. };
  24. namespace services
  25. {
  26. template <typename Geometry>
  27. struct default_strategy<Geometry, spherical_equatorial_tag>
  28. {
  29. using type = strategies::convex_hull::spherical<>;
  30. };
  31. } // namespace services
  32. }} // namespace strategies::convex_hull
  33. }} // namespace boost::geometry
  34. #endif // BOOST_GEOMETRY_STRATEGIES_CONVEX_HULL_SPHERICAL_HPP