3 // Copyright (c) 2021, Oracle and/or its affiliates.
5 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
7 // Licensed under the Boost Software License version 1.0.
8 // http://www.boost.org/users/license.html
10 #ifndef BOOST_GEOMETRY_STRATEGIES_IS_CONVEX_SPHERICAL_HPP
11 #define BOOST_GEOMETRY_STRATEGIES_IS_CONVEX_SPHERICAL_HPP
14 #include <boost/geometry/strategies/convex_hull/spherical.hpp>
15 #include <boost/geometry/strategies/detail.hpp>
16 #include <boost/geometry/strategies/is_convex/services.hpp>
19 namespace boost { namespace geometry
22 namespace strategies { namespace is_convex
26 template <typename CalculationType = void>
27 using spherical = strategies::convex_hull::spherical<CalculationType>;
33 template <typename Geometry>
34 struct default_strategy<Geometry, spherical_equatorial_tag>
36 using type = strategies::is_convex::spherical<>;
39 template <typename CT>
40 struct strategy_converter<strategy::side::spherical_side_formula<CT>>
42 static auto get(strategy::side::spherical_side_formula<CT> const& )
44 return strategies::is_convex::spherical<CT>();
48 } // namespace services
50 }} // namespace strategies::is_convex
52 }} // namespace boost::geometry
54 #endif // BOOST_GEOMETRY_STRATEGIES_IS_CONVEX_SPHERICAL_HPP