3 // Copyright (c) 2021, Oracle and/or its affiliates.
5 // Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle
7 // Licensed under the Boost Software License version 1.0.
8 // http://www.boost.org/users/license.html
10 #ifndef BOOST_GEOMETRY_STRATEGIES_CLOSEST_POINTS_CARTESIAN_HPP
11 #define BOOST_GEOMETRY_STRATEGIES_CLOSEST_POINTS_CARTESIAN_HPP
14 //#include <boost/geometry/strategies/cartesian/azimuth.hpp>
16 //#include <boost/geometry/strategies/cartesian/distance_projected_point.hpp>
17 //#include <boost/geometry/strategies/cartesian/distance_pythagoras.hpp>
18 #include <boost/geometry/strategies/cartesian/distance_pythagoras_box_box.hpp>
19 #include <boost/geometry/strategies/cartesian/distance_pythagoras_point_box.hpp>
20 #include <boost/geometry/strategies/cartesian/distance_segment_box.hpp>
22 #include <boost/geometry/strategies/cartesian/closest_points_pt_seg.hpp>
24 #include <boost/geometry/strategies/detail.hpp>
25 #include <boost/geometry/strategies/distance/detail.hpp>
26 #include <boost/geometry/strategies/closest_points/services.hpp>
28 //#include <boost/geometry/strategies/normalize.hpp>
29 #include <boost/geometry/strategies/distance/cartesian.hpp>
31 #include <boost/geometry/util/type_traits.hpp>
34 namespace boost { namespace geometry
37 namespace strategies { namespace closest_points
40 template <typename CalculationType = void>
42 : public strategies::distance::cartesian<CalculationType>
44 template <typename Geometry1, typename Geometry2>
45 static auto closest_points(Geometry1 const&, Geometry2 const&,
46 distance::detail::enable_if_ps_t<Geometry1, Geometry2> * = nullptr)
48 return strategy::closest_points::projected_point<CalculationType>();
56 template <typename Geometry1, typename Geometry2>
57 struct default_strategy<Geometry1, Geometry2, cartesian_tag, cartesian_tag>
59 using type = strategies::closest_points::cartesian<>;
62 } // namespace services
64 }} // namespace strategies::closest_points
66 }} // namespace boost::geometry
68 #endif // BOOST_GEOMETRY_STRATEGIES_CLOSEST_POINTS_CARTESIAN_HPP