File indexing completed on 2025-01-18 09:36:41
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef BOOST_GEOMETRY_STRATEGY_AGNOSTIC_POINT_IN_POINT_HPP
0013 #define BOOST_GEOMETRY_STRATEGY_AGNOSTIC_POINT_IN_POINT_HPP
0014
0015
0016 #include <boost/geometry/core/cs.hpp>
0017 #include <boost/geometry/core/tags.hpp>
0018
0019 #include <boost/geometry/strategies/cartesian/point_in_point.hpp>
0020 #include <boost/geometry/strategies/spherical/point_in_point.hpp>
0021
0022
0023 namespace boost { namespace geometry
0024 {
0025
0026 namespace strategy { namespace within
0027 {
0028
0029 template
0030 <
0031 typename Point1, typename Point2,
0032 typename CSTag = typename cs_tag<Point1>::type
0033 >
0034 struct point_in_point
0035 : strategy::within::cartesian_point_point
0036 {};
0037
0038 template <typename Point1, typename Point2>
0039 struct point_in_point<Point1, Point2, spherical_equatorial_tag>
0040 : strategy::within::spherical_point_point
0041 {};
0042
0043 template <typename Point1, typename Point2>
0044 struct point_in_point<Point1, Point2, spherical_polar_tag>
0045 : strategy::within::spherical_point_point
0046 {};
0047
0048 template <typename Point1, typename Point2>
0049 struct point_in_point<Point1, Point2, geographic_tag>
0050 : strategy::within::spherical_point_point
0051 {};
0052
0053
0054 }}
0055
0056
0057 }}
0058
0059
0060 #endif