]>
Commit | Line | Data |
---|---|---|
b32b8144 FG |
1 | // Boost.Geometry (aka GGL, Generic Geometry Library) |
2 | ||
92f5a8d4 | 3 | // Copyright (c) 2014-2018 Oracle and/or its affiliates. |
b32b8144 FG |
4 | |
5 | // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle | |
6 | ||
7 | // Use, modification and distribution is subject to the Boost Software License, | |
8 | // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at | |
9 | // http://www.boost.org/LICENSE_1_0.txt) | |
10 | ||
11 | ||
12 | #ifndef BOOST_GEOMETRY_STRATEGY_AGNOSTIC_POINT_IN_POINT_HPP | |
13 | #define BOOST_GEOMETRY_STRATEGY_AGNOSTIC_POINT_IN_POINT_HPP | |
14 | ||
b32b8144 | 15 | |
92f5a8d4 TL |
16 | #include <boost/geometry/core/cs.hpp> |
17 | #include <boost/geometry/core/tags.hpp> | |
18 | ||
19 | #include <boost/geometry/strategies/cartesian/point_in_point.hpp> | |
20 | #include <boost/geometry/strategies/spherical/point_in_point.hpp> | |
b32b8144 FG |
21 | |
22 | ||
23 | namespace boost { namespace geometry | |
24 | { | |
25 | ||
26 | namespace strategy { namespace within | |
27 | { | |
28 | ||
29 | template | |
30 | < | |
92f5a8d4 TL |
31 | typename Point1, typename Point2, |
32 | typename CSTag = typename cs_tag<Point1>::type | |
b32b8144 FG |
33 | > |
34 | struct point_in_point | |
92f5a8d4 TL |
35 | : strategy::within::cartesian_point_point |
36 | {}; | |
b32b8144 | 37 | |
92f5a8d4 TL |
38 | template <typename Point1, typename Point2> |
39 | struct point_in_point<Point1, Point2, spherical_equatorial_tag> | |
40 | : strategy::within::spherical_point_point | |
41 | {}; | |
b32b8144 | 42 | |
92f5a8d4 TL |
43 | template <typename Point1, typename Point2> |
44 | struct point_in_point<Point1, Point2, spherical_polar_tag> | |
45 | : strategy::within::spherical_point_point | |
46 | {}; | |
b32b8144 | 47 | |
92f5a8d4 TL |
48 | template <typename Point1, typename Point2> |
49 | struct point_in_point<Point1, Point2, geographic_tag> | |
50 | : strategy::within::spherical_point_point | |
51 | {}; | |
b32b8144 FG |
52 | |
53 | ||
54 | }} // namespace strategy::within | |
55 | ||
56 | ||
b32b8144 FG |
57 | }} // namespace boost::geometry |
58 | ||
59 | ||
60 | #endif // BOOST_GEOMETRY_STRATEGY_AGNOSTIC_POINT_IN_POINT_HPP |