Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:36:42

0001 // Boost.Geometry
0002 
0003 // Copyright (c) 2021, Oracle and/or its affiliates.
0004 
0005 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
0006 
0007 // Licensed under the Boost Software License version 1.0.
0008 // http://www.boost.org/users/license.html
0009 
0010 #ifndef BOOST_GEOMETRY_STRATEGIES_AZIMUTH_CARTESIAN_HPP
0011 #define BOOST_GEOMETRY_STRATEGIES_AZIMUTH_CARTESIAN_HPP
0012 
0013 
0014 // TODO: move this file to boost/geometry/strategy
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 } // namespace services
0058 
0059 }} // namespace strategies::azimuth
0060 
0061 }} // namespace boost::geometry
0062 
0063 #endif // BOOST_GEOMETRY_STRATEGIES_AZIMUTH_CARTESIAN_HPP