// Boost.Geometry (aka GGL, Generic Geometry Library) // Copyright (c) 2007-2015 Barend Gehrels, Amsterdam, the Netherlands. // Copyright (c) 2008-2015 Bruno Lalande, Paris, France. // Copyright (c) 2009-2015 Mateusz Loskot, London, UK. // Copyright (c) 2013-2015 Adam Wulkiewicz, Lodz, Poland // This file was modified by Oracle on 2013, 2014, 2015, 2017, 2018, 2019. // Modifications copyright (c) 2013-2019, Oracle and/or its affiliates. // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library // (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands. // Use, modification and distribution is subject to the Boost Software License, // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_GEOMETRY_STRATEGY_CARTESIAN_POINT_IN_POINT_HPP #define BOOST_GEOMETRY_STRATEGY_CARTESIAN_POINT_IN_POINT_HPP #include #include #include #include #include #include #include namespace boost { namespace geometry { #ifndef DOXYGEN_NO_DETAIL namespace detail { namespace within { template struct point_point_generic { template static inline bool apply(Point1 const& p1, Point2 const& p2) { if (! geometry::math::equals(get(p1), get(p2))) { return false; } return point_point_generic::apply(p1, p2); } }; template struct point_point_generic { template static inline bool apply(Point1 const&, Point2 const& ) { return true; } }; }} // namespace detail::within #endif // DOXYGEN_NO_DETAIL namespace strategy { namespace within { struct cartesian_point_point { typedef cartesian_tag cs_tag; template static inline bool apply(Point1 const& point1, Point2 const& point2) { return geometry::detail::within::point_point_generic < 0, dimension::type::value >::apply(point1, point2); } }; #ifndef DOXYGEN_NO_STRATEGY_SPECIALIZATIONS namespace services { template struct default_strategy { typedef strategy::within::cartesian_point_point type; }; } // namespace services #endif }} // namespace strategy::within #ifndef DOXYGEN_NO_STRATEGY_SPECIALIZATIONS namespace strategy { namespace covered_by { namespace services { template struct default_strategy { typedef strategy::within::cartesian_point_point type; }; }}} // namespace strategy::covered_by::services #endif }} // namespace boost::geometry #endif // BOOST_GEOMETRY_STRATEGY_CARTESIAN_POINT_IN_POINT_HPP