1 // Boost.Geometry (aka GGL, Generic Geometry Library)
3 // Copyright (c) 2007-2015 Barend Gehrels, Amsterdam, the Netherlands.
4 // Copyright (c) 2008-2015 Bruno Lalande, Paris, France.
5 // Copyright (c) 2009-2015 Mateusz Loskot, London, UK.
6 // Copyright (c) 2014-2015 Samuel Debionne, Grenoble, France.
8 // This file was modified by Oracle on 2015, 2016, 2017, 2018.
9 // Modifications copyright (c) 2015-2018, Oracle and/or its affiliates.
11 // Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle
12 // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
13 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
15 // Distributed under the Boost Software License, Version 1.0.
16 // (See accompanying file LICENSE_1_0.txt or copy at
17 // http://www.boost.org/LICENSE_1_0.txt)
19 #ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_EXPAND_SEGMENT_HPP
20 #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_EXPAND_SEGMENT_HPP
23 #include <boost/core/ignore_unused.hpp>
25 #include <boost/geometry/algorithms/dispatch/expand.hpp>
27 #include <boost/geometry/core/tags.hpp>
29 // For backward compatibility
30 #include <boost/geometry/strategies/cartesian/expand_segment.hpp>
31 #include <boost/geometry/strategies/geographic/expand_segment.hpp>
32 #include <boost/geometry/strategies/spherical/expand_segment.hpp>
35 namespace boost { namespace geometry
38 #ifndef DOXYGEN_NO_DISPATCH
44 typename Box, typename Segment
52 template <typename Strategy>
53 static inline void apply(Box& box,
54 Segment const& segment,
55 Strategy const& strategy)
57 boost::ignore_unused(strategy);
58 strategy.apply(box, segment);
63 } // namespace dispatch
64 #endif // DOXYGEN_NO_DISPATCH
66 }} // namespace boost::geometry
69 #endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_EXPAND_SEGMENT_HPP