]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/geometry/strategies/azimuth/cartesian.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / geometry / strategies / azimuth / cartesian.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_CARTESIAN_HPP
11 #define BOOST_GEOMETRY_STRATEGIES_AZIMUTH_CARTESIAN_HPP
12
13
14 // TODO: move this file to boost/geometry/strategy
15 #include <boost/geometry/strategies/cartesian/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 struct cartesian : strategies::detail::cartesian_base
29 {
30 static auto azimuth()
31 {
32 return strategy::azimuth::cartesian<CalculationType>();
33 }
34 };
35
36
37 namespace services
38 {
39
40 template <typename Point1, typename Point2>
41 struct default_strategy<Point1, Point2, cartesian_tag, cartesian_tag>
42 {
43 using type = strategies::azimuth::cartesian<>;
44 };
45
46
47 template <typename CT>
48 struct strategy_converter<strategy::azimuth::cartesian<CT> >
49 {
50 static auto get(strategy::azimuth::cartesian<CT> const&)
51 {
52 return strategies::azimuth::cartesian<CT>();
53 }
54 };
55
56
57 } // namespace services
58
59 }} // namespace strategies::azimuth
60
61 }} // namespace boost::geometry
62
63 #endif // BOOST_GEOMETRY_STRATEGIES_AZIMUTH_CARTESIAN_HPP