]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/geometry/strategies/azimuth/spherical.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / geometry / strategies / azimuth / 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_AZIMUTH_SPHERICAL_HPP
11 #define BOOST_GEOMETRY_STRATEGIES_AZIMUTH_SPHERICAL_HPP
12
13
14 // TODO: move this file to boost/geometry/strategy
15 #include <boost/geometry/strategies/spherical/azimuth.hpp>
16
17 #include <boost/geometry/strategies/azimuth/services.hpp>
18 #include <boost/geometry/strategies/detail.hpp>
19
20
21 namespace boost { namespace geometry
22 {
23
24 namespace strategies { namespace azimuth
25 {
26
27 template <typename CalculationType = void>
28 class spherical : strategies::detail::spherical_base<void>
29 {
30 using base_t = strategies::detail::spherical_base<void>;
31
32 public:
33
34 static auto azimuth()
35 {
36 return strategy::azimuth::spherical<CalculationType>();
37 }
38 };
39
40
41 namespace services
42 {
43
44
45 template <typename Point1, typename Point2>
46 struct default_strategy<Point1, Point2, spherical_equatorial_tag, spherical_equatorial_tag>
47 {
48 using type = strategies::azimuth::spherical<>;
49 };
50
51 template <typename CT>
52 struct strategy_converter<strategy::azimuth::spherical<CT> >
53 {
54 static auto get(strategy::azimuth::spherical<CT> const&)
55 {
56 return strategies::azimuth::spherical<CT>();
57 }
58 };
59
60
61 } // namespace services
62
63 }} // namespace strategies::azimuth
64
65 }} // namespace boost::geometry
66
67 #endif // BOOST_GEOMETRY_STRATEGIES_AZIMUTH_SPHERICAL_HPP