123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- #ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_DISJOINT_POINT_POINT_HPP
- #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_DISJOINT_POINT_POINT_HPP
- #include <cstddef>
- #include <type_traits>
- #include <boost/geometry/core/tags.hpp>
- #include <boost/geometry/algorithms/dispatch/disjoint.hpp>
- #include <boost/geometry/strategies/detail.hpp>
- #include <boost/geometry/strategies/disjoint.hpp>
- #include <boost/geometry/strategies/cartesian/point_in_point.hpp>
- #include <boost/geometry/strategies/spherical/point_in_point.hpp>
- namespace boost { namespace geometry
- {
- #ifndef DOXYGEN_NO_DETAIL
- namespace detail { namespace disjoint
- {
- template
- <
- typename Point1, typename Point2, typename Strategy,
- std::enable_if_t<strategies::detail::is_umbrella_strategy<Strategy>::value, int> = 0
- >
- inline bool disjoint_point_point(Point1 const& point1, Point2 const& point2,
- Strategy const& strategy)
- {
- typedef decltype(strategy.relate(point1, point2)) strategy_type;
-
- return ! strategy_type::apply(point1, point2);
- }
- template
- <
- typename Point1, typename Point2, typename Strategy,
- std::enable_if_t<! strategies::detail::is_umbrella_strategy<Strategy>::value, int> = 0
- >
- inline bool disjoint_point_point(Point1 const& point1, Point2 const& point2,
- Strategy const& )
- {
-
- return ! Strategy::apply(point1, point2);
- }
- }}
- #endif
- #ifndef DOXYGEN_NO_DISPATCH
- namespace dispatch
- {
- template <typename Point1, typename Point2, std::size_t DimensionCount>
- struct disjoint<Point1, Point2, DimensionCount, point_tag, point_tag, false>
- {
- template <typename Strategy>
- static inline bool apply(Point1 const& point1, Point2 const& point2,
- Strategy const& strategy)
- {
- typedef decltype(strategy.relate(point1, point2)) strategy_type;
-
- return ! strategy_type::apply(point1, point2);
- }
- };
- }
- #endif
- }}
- #endif
|