1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- #ifndef BOOST_GEOMETRY_STRATEGY_CARTESIAN_EXPAND_SEGMENT_HPP
- #define BOOST_GEOMETRY_STRATEGY_CARTESIAN_EXPAND_SEGMENT_HPP
- #include <boost/geometry/core/tags.hpp>
- #include <boost/geometry/algorithms/detail/expand/indexed.hpp>
- #include <boost/geometry/strategy/expand.hpp>
- namespace boost { namespace geometry
- {
- namespace strategy { namespace expand
- {
- class cartesian_segment
- {
- public:
- template <typename Box, typename Segment>
- static void apply(Box & box, Segment const& segment)
- {
- geometry::detail::expand::expand_indexed
- <
- 0, dimension<Segment>::value
- >::apply(box, segment);
- }
- };
- #ifndef DOXYGEN_NO_STRATEGY_SPECIALIZATIONS
- namespace services
- {
- template <typename CalculationType>
- struct default_strategy<segment_tag, cartesian_tag, CalculationType>
- {
- typedef cartesian_segment type;
- };
- }
- #endif
- }}
- }}
- #endif
|