Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Boost.Geometry
0002 
0003 // Copyright (c) 2021, Oracle and/or its affiliates.
0004 
0005 // Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle
0006 
0007 // Licensed under the Boost Software License version 1.0.
0008 // http://www.boost.org/users/license.html
0009 
0010 #ifndef BOOST_GEOMETRY_STRATEGIES_CLOSEST_POINTS_CARTESIAN_HPP
0011 #define BOOST_GEOMETRY_STRATEGIES_CLOSEST_POINTS_CARTESIAN_HPP
0012 
0013 
0014 //#include <boost/geometry/strategies/cartesian/azimuth.hpp>
0015 
0016 //#include <boost/geometry/strategies/cartesian/distance_projected_point.hpp>
0017 //#include <boost/geometry/strategies/cartesian/distance_pythagoras.hpp>
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 //#include <boost/geometry/strategies/normalize.hpp>
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 } // namespace services
0063 
0064 }} // namespace strategies::closest_points
0065 
0066 }} // namespace boost::geometry
0067 
0068 #endif // BOOST_GEOMETRY_STRATEGIES_CLOSEST_POINTS_CARTESIAN_HPP