Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:36:41

0001 // Boost.Geometry (aka GGL, Generic Geometry Library)
0002 
0003 // Copyright (c) 2014-2018 Oracle and/or its affiliates.
0004 
0005 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
0006 
0007 // Use, modification and distribution is subject to the Boost Software License,
0008 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
0009 // http://www.boost.org/LICENSE_1_0.txt)
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 }} // namespace strategy::within
0055 
0056 
0057 }} // namespace boost::geometry
0058 
0059 
0060 #endif // BOOST_GEOMETRY_STRATEGY_AGNOSTIC_POINT_IN_POINT_HPP