File indexing completed on 2025-01-18 09:36:50
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef BOOST_GEOMETRY_STRATEGIES_SPHERICAL_HPP
0011 #define BOOST_GEOMETRY_STRATEGIES_SPHERICAL_HPP
0012
0013
0014 #include <boost/geometry/strategies/area/spherical.hpp>
0015 #include <boost/geometry/strategies/azimuth/spherical.hpp>
0016 #include <boost/geometry/strategies/buffer/spherical.hpp>
0017 #include <boost/geometry/strategies/convex_hull/spherical.hpp>
0018 #include <boost/geometry/strategies/distance/spherical.hpp>
0019 #include <boost/geometry/strategies/envelope/spherical.hpp>
0020 #include <boost/geometry/strategies/expand/spherical.hpp>
0021 #include <boost/geometry/strategies/io/spherical.hpp>
0022 #include <boost/geometry/strategies/index/spherical.hpp>
0023 #include <boost/geometry/strategies/is_convex/spherical.hpp>
0024 #include <boost/geometry/strategies/relate/spherical.hpp>
0025 #include <boost/geometry/strategies/simplify/spherical.hpp>
0026
0027
0028 namespace boost { namespace geometry
0029 {
0030
0031
0032 namespace strategies
0033 {
0034
0035
0036 template
0037 <
0038 typename RadiusTypeOrSphere = double,
0039 typename CalculationType = void
0040 >
0041 class spherical
0042
0043 : public strategies::index::detail::spherical<RadiusTypeOrSphere, CalculationType>
0044 {
0045 using base_t = strategies::index::detail::spherical<RadiusTypeOrSphere, CalculationType>;
0046
0047 public:
0048 spherical() = default;
0049
0050 template <typename RadiusOrSphere>
0051 explicit spherical(RadiusOrSphere const& radius_or_sphere)
0052 : base_t(radius_or_sphere)
0053 {}
0054
0055 static auto azimuth()
0056 {
0057 return strategy::azimuth::spherical<CalculationType>();
0058 }
0059
0060 static auto point_order()
0061 {
0062 return strategy::point_order::spherical<CalculationType>();
0063 }
0064 };
0065
0066
0067 }
0068
0069
0070 }}
0071
0072
0073 #endif