File indexing completed on 2025-01-18 09:36:44
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef BOOST_GEOMETRY_STRATEGIES_CLOSEST_POINTS_CARTESIAN_HPP
0011 #define BOOST_GEOMETRY_STRATEGIES_CLOSEST_POINTS_CARTESIAN_HPP
0012
0013
0014
0015
0016
0017
0018 #include <boost/geometry/strategies/cartesian/distance_pythagoras_box_box.hpp>
0019 #include <boost/geometry/strategies/cartesian/distance_pythagoras_point_box.hpp>
0020 #include <boost/geometry/strategies/cartesian/distance_segment_box.hpp>
0021
0022 #include <boost/geometry/strategies/cartesian/closest_points_pt_seg.hpp>
0023
0024 #include <boost/geometry/strategies/detail.hpp>
0025 #include <boost/geometry/strategies/distance/detail.hpp>
0026 #include <boost/geometry/strategies/closest_points/services.hpp>
0027
0028
0029 #include <boost/geometry/strategies/distance/cartesian.hpp>
0030
0031 #include <boost/geometry/util/type_traits.hpp>
0032
0033
0034 namespace boost { namespace geometry
0035 {
0036
0037 namespace strategies { namespace closest_points
0038 {
0039
0040 template <typename CalculationType = void>
0041 struct cartesian
0042 : public strategies::distance::cartesian<CalculationType>
0043 {
0044 template <typename Geometry1, typename Geometry2>
0045 static auto closest_points(Geometry1 const&, Geometry2 const&,
0046 distance::detail::enable_if_ps_t<Geometry1, Geometry2> * = nullptr)
0047 {
0048 return strategy::closest_points::projected_point<CalculationType>();
0049 }
0050 };
0051
0052
0053 namespace services
0054 {
0055
0056 template <typename Geometry1, typename Geometry2>
0057 struct default_strategy<Geometry1, Geometry2, cartesian_tag, cartesian_tag>
0058 {
0059 using type = strategies::closest_points::cartesian<>;
0060 };
0061
0062 }
0063
0064 }}
0065
0066 }}
0067
0068 #endif