File indexing completed on 2025-01-18 09:36:47
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef BOOST_GEOMETRY_STRATEGIES_IS_CONVEX_CARTESIAN_HPP
0011 #define BOOST_GEOMETRY_STRATEGIES_IS_CONVEX_CARTESIAN_HPP
0012
0013
0014 #include <boost/geometry/strategies/convex_hull/cartesian.hpp>
0015 #include <boost/geometry/strategies/detail.hpp>
0016 #include <boost/geometry/strategies/is_convex/services.hpp>
0017 #include <boost/geometry/strategy/cartesian/side_by_triangle.hpp>
0018 #include <boost/geometry/strategy/cartesian/side_robust.hpp>
0019
0020
0021 namespace boost { namespace geometry
0022 {
0023
0024 namespace strategies { namespace is_convex
0025 {
0026
0027
0028 template <typename CalculationType = void>
0029 using cartesian = strategies::convex_hull::cartesian<CalculationType>;
0030
0031
0032 namespace services
0033 {
0034
0035 template <typename Geometry>
0036 struct default_strategy<Geometry, cartesian_tag>
0037 {
0038 using type = strategies::is_convex::cartesian<>;
0039 };
0040
0041 template <typename CT>
0042 struct strategy_converter<strategy::side::side_robust<CT>>
0043 {
0044 static auto get(strategy::side::side_robust<CT> const& )
0045 {
0046 return strategies::is_convex::cartesian<CT>();
0047 }
0048 };
0049
0050 template <typename CT>
0051 struct strategy_converter<strategy::side::side_by_triangle<CT>>
0052 {
0053 static auto get(strategy::side::side_by_triangle<CT> const& )
0054 {
0055 return strategies::is_convex::cartesian<CT>();
0056 }
0057 };
0058
0059 }
0060
0061 }}
0062
0063 }}
0064
0065 #endif