3 // Copyright (c) 2020-2021, Oracle and/or its affiliates.
5 // Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle
6 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
8 // Licensed under the Boost Software License version 1.0.
9 // http://www.boost.org/users/license.html
11 #ifndef BOOST_GEOMETRY_STRATEGIES_CONVEX_HULL_SPHERICAL_HPP
12 #define BOOST_GEOMETRY_STRATEGIES_CONVEX_HULL_SPHERICAL_HPP
15 #include <boost/geometry/strategies/convex_hull/services.hpp>
16 #include <boost/geometry/strategies/detail.hpp>
17 #include <boost/geometry/strategies/spherical/point_in_point.hpp>
18 #include <boost/geometry/strategies/spherical/ssf.hpp>
19 #include <boost/geometry/util/type_traits.hpp>
22 namespace boost { namespace geometry
25 namespace strategies { namespace convex_hull
28 template <typename CalculationType = void>
29 class spherical : public strategies::detail::spherical_base<void>
32 template <typename Geometry1, typename Geometry2>
33 static auto relate(Geometry1 const&, Geometry2 const&,
36 util::is_pointlike<Geometry1>::value
37 && util::is_pointlike<Geometry2>::value
40 return strategy::within::spherical_point_point();
45 return strategy::side::spherical_side_formula<CalculationType>();
52 template <typename Geometry>
53 struct default_strategy<Geometry, spherical_equatorial_tag>
55 using type = strategies::convex_hull::spherical<>;
58 } // namespace services
60 }} // namespace strategies::convex_hull
62 }} // namespace boost::geometry
64 #endif // BOOST_GEOMETRY_STRATEGIES_CONVEX_HULL_SPHERICAL_HPP