diff options
Diffstat (limited to 'boost/geometry/strategies/is_convex/cartesian.hpp')
-rw-r--r-- | boost/geometry/strategies/is_convex/cartesian.hpp | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/boost/geometry/strategies/is_convex/cartesian.hpp b/boost/geometry/strategies/is_convex/cartesian.hpp index 4297c223b5..c6c340fbdc 100644 --- a/boost/geometry/strategies/is_convex/cartesian.hpp +++ b/boost/geometry/strategies/is_convex/cartesian.hpp @@ -11,12 +11,11 @@ #define BOOST_GEOMETRY_STRATEGIES_IS_CONVEX_CARTESIAN_HPP -#include <boost/geometry/strategies/cartesian/point_in_point.hpp> -#include <boost/geometry/strategies/cartesian/side_by_triangle.hpp> #include <boost/geometry/strategies/convex_hull/cartesian.hpp> #include <boost/geometry/strategies/detail.hpp> #include <boost/geometry/strategies/is_convex/services.hpp> -#include <boost/geometry/util/type_traits.hpp> +#include <boost/geometry/strategy/cartesian/side_by_triangle.hpp> +#include <boost/geometry/strategy/cartesian/side_robust.hpp> namespace boost { namespace geometry @@ -25,21 +24,10 @@ namespace boost { namespace geometry namespace strategies { namespace is_convex { + template <typename CalculationType = void> -class cartesian : public strategies::convex_hull::cartesian<CalculationType> -{ -public: - template <typename Geometry1, typename Geometry2> - static auto relate(Geometry1 const&, Geometry2 const&, - std::enable_if_t - < - util::is_pointlike<Geometry1>::value - && util::is_pointlike<Geometry2>::value - > * = nullptr) - { - return strategy::within::cartesian_point_point(); - } -}; +using cartesian = strategies::convex_hull::cartesian<CalculationType>; + namespace services { |