Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-11-15 09:12:12

0001 // Boost.Geometry
0002 
0003 // Copyright (c) 2021-2022, 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_BUFFER_SPHERICAL_HPP
0011 #define BOOST_GEOMETRY_STRATEGIES_BUFFER_SPHERICAL_HPP
0012 
0013 
0014 #include <boost/geometry/strategies/buffer/services.hpp>
0015 #include <boost/geometry/strategies/distance/spherical.hpp>
0016 
0017 
0018 namespace boost { namespace geometry
0019 {
0020 
0021 namespace strategies { namespace buffer
0022 {
0023 
0024 template
0025 <
0026     typename RadiusTypeOrSphere = double,
0027     typename CalculationType = void
0028 >
0029 class spherical
0030     : public strategies::distance::detail::spherical<RadiusTypeOrSphere, CalculationType>
0031 {
0032     using base_t = strategies::distance::detail::spherical<RadiusTypeOrSphere, CalculationType>;
0033 
0034 public:
0035     spherical() = default;
0036 
0037     template <typename RadiusOrSphere>
0038     explicit spherical(RadiusOrSphere const& radius_or_sphere)
0039         : base_t(radius_or_sphere)
0040     {}
0041 };
0042 
0043 
0044 namespace services
0045 {
0046 
0047 template <typename Geometry>
0048 struct default_strategy<Geometry, spherical_equatorial_tag>
0049 {
0050     using type = strategies::buffer::spherical<>;
0051 };
0052 
0053 
0054 } // namespace services
0055 
0056 }} // namespace strategies::buffer
0057 
0058 }} // namespace boost::geometry
0059 
0060 #endif // BOOST_GEOMETRY_STRATEGIES_BUFFER_SPHERICAL_HPP