Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:35:04

0001 // Boost.Geometry (aka GGL, Generic Geometry Library)
0002 
0003 // Copyright (c) 2014-2021, Oracle and/or its affiliates.
0004 
0005 // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
0006 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
0007 
0008 // Licensed under the Boost Software License version 1.0.
0009 // http://www.boost.org/users/license.html
0010 
0011 #ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_DISTANCE_BOX_TO_BOX_HPP
0012 #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_DISTANCE_BOX_TO_BOX_HPP
0013 
0014 #include <boost/core/ignore_unused.hpp>
0015 
0016 #include <boost/geometry/core/point_type.hpp>
0017 #include <boost/geometry/core/tags.hpp>
0018 
0019 #include <boost/geometry/strategies/distance.hpp>
0020 #include <boost/geometry/strategies/tags.hpp>
0021 
0022 #include <boost/geometry/algorithms/dispatch/distance.hpp>
0023 
0024 
0025 namespace boost { namespace geometry
0026 {
0027 
0028 #ifndef DOXYGEN_NO_DISPATCH
0029 namespace dispatch
0030 {
0031 
0032 
0033 template <typename Box1, typename Box2, typename Strategies>
0034 struct distance
0035     <
0036         Box1, Box2, Strategies, box_tag, box_tag,
0037         strategy_tag_distance_box_box, false
0038     >
0039 {
0040     static inline auto apply(Box1 const& box1, Box2 const& box2, Strategies const& strategies)
0041     {
0042         boost::ignore_unused(strategies);
0043         return strategies.distance(box1, box2).apply(box1, box2);
0044     }
0045 };
0046 
0047 
0048 } // namespace dispatch
0049 #endif // DOXYGEN_NO_DISPATCH
0050 
0051 
0052 }} // namespace boost::geometry
0053 
0054 
0055 #endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_DISTANCE_BOX_TO_BOX_HPP