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_STRATEGY_CARTESIAN_EXPAND_SEGMENT_HPP
20 #define BOOST_GEOMETRY_STRATEGY_CARTESIAN_EXPAND_SEGMENT_HPP
23 #include <boost/geometry/core/tags.hpp>
25 #include <boost/geometry/algorithms/detail/expand/indexed.hpp>
27 #include <boost/geometry/strategy/expand.hpp>
30 namespace boost { namespace geometry
33 namespace strategy { namespace expand
36 class cartesian_segment
39 template <typename Box, typename Segment>
40 static void apply(Box & box, Segment const& segment)
42 geometry::detail::expand::expand_indexed
44 0, dimension<Segment>::value
45 >::apply(box, segment);
50 #ifndef DOXYGEN_NO_STRATEGY_SPECIALIZATIONS
55 template <typename CalculationType>
56 struct default_strategy<segment_tag, cartesian_tag, CalculationType>
58 typedef cartesian_segment type;
62 } // namespace services
64 #endif // DOXYGEN_NO_STRATEGY_SPECIALIZATIONS
67 }} // namespace strategy::expand
69 }} // namespace boost::geometry
71 #endif // BOOST_GEOMETRY_STRATEGY_CARTESIAN_EXPAND_SEGMENT_HPP