3 // Copyright (c) 2021, Oracle and/or its affiliates.
5 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
7 // Licensed under the Boost Software License version 1.0.
8 // http://www.boost.org/users/license.html
10 #ifndef BOOST_GEOMETRY_STRATEGIES_AZIMUTH_CARTESIAN_HPP
11 #define BOOST_GEOMETRY_STRATEGIES_AZIMUTH_CARTESIAN_HPP
14 // TODO: move this file to boost/geometry/strategy
15 #include <boost/geometry/strategies/cartesian/azimuth.hpp>
17 #include <boost/geometry/strategies/azimuth/services.hpp>
18 #include <boost/geometry/strategies/detail.hpp>
21 namespace boost { namespace geometry
24 namespace strategies { namespace azimuth
27 template <typename CalculationType = void>
28 struct cartesian : strategies::detail::cartesian_base
32 return strategy::azimuth::cartesian<CalculationType>();
40 template <typename Point1, typename Point2>
41 struct default_strategy<Point1, Point2, cartesian_tag, cartesian_tag>
43 using type = strategies::azimuth::cartesian<>;
47 template <typename CT>
48 struct strategy_converter<strategy::azimuth::cartesian<CT> >
50 static auto get(strategy::azimuth::cartesian<CT> const&)
52 return strategies::azimuth::cartesian<CT>();
57 } // namespace services
59 }} // namespace strategies::azimuth
61 }} // namespace boost::geometry
63 #endif // BOOST_GEOMETRY_STRATEGIES_AZIMUTH_CARTESIAN_HPP