File indexing completed on 2025-01-18 09:36:42
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef BOOST_GEOMETRY_STRATEGIES_AZIMUTH_CARTESIAN_HPP
0011 #define BOOST_GEOMETRY_STRATEGIES_AZIMUTH_CARTESIAN_HPP
0012
0013
0014
0015 #include <boost/geometry/strategies/cartesian/azimuth.hpp>
0016
0017 #include <boost/geometry/strategies/azimuth/services.hpp>
0018 #include <boost/geometry/strategies/detail.hpp>
0019
0020
0021 namespace boost { namespace geometry
0022 {
0023
0024 namespace strategies { namespace azimuth
0025 {
0026
0027 template <typename CalculationType = void>
0028 struct cartesian : strategies::detail::cartesian_base
0029 {
0030 static auto azimuth()
0031 {
0032 return strategy::azimuth::cartesian<CalculationType>();
0033 }
0034 };
0035
0036
0037 namespace services
0038 {
0039
0040 template <typename Point1, typename Point2>
0041 struct default_strategy<Point1, Point2, cartesian_tag, cartesian_tag>
0042 {
0043 using type = strategies::azimuth::cartesian<>;
0044 };
0045
0046
0047 template <typename CT>
0048 struct strategy_converter<strategy::azimuth::cartesian<CT> >
0049 {
0050 static auto get(strategy::azimuth::cartesian<CT> const&)
0051 {
0052 return strategies::azimuth::cartesian<CT>();
0053 }
0054 };
0055
0056
0057 }
0058
0059 }}
0060
0061 }}
0062
0063 #endif