Back to home page

EIC code displayed by LXR

 
 

    


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

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_IS_CONVEX_SPHERICAL_HPP
0011 #define BOOST_GEOMETRY_STRATEGIES_IS_CONVEX_SPHERICAL_HPP
0012 
0013 
0014 #include <boost/geometry/strategies/convex_hull/spherical.hpp>
0015 #include <boost/geometry/strategies/detail.hpp>
0016 #include <boost/geometry/strategies/is_convex/services.hpp>
0017 
0018 
0019 namespace boost { namespace geometry
0020 {
0021 
0022 namespace strategies { namespace is_convex
0023 {
0024 
0025 
0026 template <typename CalculationType = void>
0027 using spherical = strategies::convex_hull::spherical<CalculationType>;
0028 
0029 
0030 namespace services
0031 {
0032 
0033 template <typename Geometry>
0034 struct default_strategy<Geometry, spherical_equatorial_tag>
0035 {
0036     using type = strategies::is_convex::spherical<>;
0037 };
0038 
0039 template <typename CT>
0040 struct strategy_converter<strategy::side::spherical_side_formula<CT>>
0041 {
0042     static auto get(strategy::side::spherical_side_formula<CT> const& )
0043     {
0044         return strategies::is_convex::spherical<CT>();
0045     }
0046 };
0047 
0048 } // namespace services
0049 
0050 }} // namespace strategies::is_convex
0051 
0052 }} // namespace boost::geometry
0053 
0054 #endif // BOOST_GEOMETRY_STRATEGIES_IS_CONVEX_SPHERICAL_HPP