1 // Boost.Geometry (aka GGL, Generic Geometry Library)
3 // Copyright (c) 2014, Oracle and/or its affiliates.
5 // Contributed and/or modified by Menelaos Karavelas, 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_ALGORITHMS_DETAIL_DISTANCE_BOX_TO_BOX_HPP
11 #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_DISTANCE_BOX_TO_BOX_HPP
13 #include <boost/core/ignore_unused.hpp>
15 #include <boost/geometry/core/point_type.hpp>
16 #include <boost/geometry/core/tags.hpp>
18 #include <boost/geometry/strategies/distance.hpp>
19 #include <boost/geometry/strategies/tags.hpp>
21 #include <boost/geometry/algorithms/dispatch/distance.hpp>
24 namespace boost { namespace geometry
27 #ifndef DOXYGEN_NO_DISPATCH
32 template <typename Box1, typename Box2, typename Strategy>
35 Box1, Box2, Strategy, box_tag, box_tag,
36 strategy_tag_distance_box_box, false
39 static inline typename strategy::distance::services::return_type
42 typename point_type<Box1>::type,
43 typename point_type<Box2>::type
45 apply(Box1 const& box1, Box2 const& box2, Strategy const& strategy)
47 boost::ignore_unused(strategy);
48 return strategy.apply(box1, box2);
53 } // namespace dispatch
54 #endif // DOXYGEN_NO_DISPATCH
57 }} // namespace boost::geometry
60 #endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_DISTANCE_BOX_TO_BOX_HPP