File indexing completed on 2025-01-18 09:36:51
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019 #ifndef BOOST_GEOMETRY_STRATEGY_CARTESIAN_EXPAND_SEGMENT_HPP
0020 #define BOOST_GEOMETRY_STRATEGY_CARTESIAN_EXPAND_SEGMENT_HPP
0021
0022
0023 #include <boost/geometry/core/tags.hpp>
0024
0025 #include <boost/geometry/algorithms/detail/expand/indexed.hpp>
0026
0027 #include <boost/geometry/strategy/expand.hpp>
0028
0029
0030 namespace boost { namespace geometry
0031 {
0032
0033 namespace strategy { namespace expand
0034 {
0035
0036 class cartesian_segment
0037 {
0038 public:
0039 template <typename Box, typename Segment>
0040 static void apply(Box & box, Segment const& segment)
0041 {
0042 geometry::detail::expand::expand_indexed
0043 <
0044 0, dimension<Segment>::value
0045 >::apply(box, segment);
0046 }
0047 };
0048
0049
0050 #ifndef DOXYGEN_NO_STRATEGY_SPECIALIZATIONS
0051
0052 namespace services
0053 {
0054
0055 template <typename CalculationType>
0056 struct default_strategy<segment_tag, cartesian_tag, CalculationType>
0057 {
0058 typedef cartesian_segment type;
0059 };
0060
0061
0062 }
0063
0064 #endif
0065
0066
0067 }}
0068
0069 }}
0070
0071 #endif