]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/geometry/strategies/is_convex/spherical.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / geometry / strategies / is_convex / spherical.hpp
1 // Boost.Geometry
2
3 // Copyright (c) 2021, Oracle and/or its affiliates.
4
5 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
6
7 // Licensed under the Boost Software License version 1.0.
8 // http://www.boost.org/users/license.html
9
10 #ifndef BOOST_GEOMETRY_STRATEGIES_IS_CONVEX_SPHERICAL_HPP
11 #define BOOST_GEOMETRY_STRATEGIES_IS_CONVEX_SPHERICAL_HPP
12
13
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>
17
18
19 namespace boost { namespace geometry
20 {
21
22 namespace strategies { namespace is_convex
23 {
24
25
26 template <typename CalculationType = void>
27 using spherical = strategies::convex_hull::spherical<CalculationType>;
28
29
30 namespace services
31 {
32
33 template <typename Geometry>
34 struct default_strategy<Geometry, spherical_equatorial_tag>
35 {
36 using type = strategies::is_convex::spherical<>;
37 };
38
39 template <typename CT>
40 struct strategy_converter<strategy::side::spherical_side_formula<CT>>
41 {
42 static auto get(strategy::side::spherical_side_formula<CT> const& )
43 {
44 return strategies::is_convex::spherical<CT>();
45 }
46 };
47
48 } // namespace services
49
50 }} // namespace strategies::is_convex
51
52 }} // namespace boost::geometry
53
54 #endif // BOOST_GEOMETRY_STRATEGIES_IS_CONVEX_SPHERICAL_HPP