12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- #ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_ENVELOPE_POINT_HPP
- #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_ENVELOPE_POINT_HPP
- #include <boost/geometry/core/tags.hpp>
- #include <boost/geometry/algorithms/dispatch/envelope.hpp>
- namespace boost { namespace geometry
- {
- #ifndef DOXYGEN_NO_DETAIL
- namespace detail { namespace envelope
- {
- struct envelope_point
- {
- template <typename Point, typename Box, typename Strategy>
- static inline void apply(Point const& point, Box& mbr, Strategy const& strategy)
- {
-
- using strategy_t = decltype(strategy.envelope(point, mbr));
- strategy_t::apply(point, mbr);
- }
- };
- }}
- #endif
- #ifndef DOXYGEN_NO_DISPATCH
- namespace dispatch
- {
- template <typename Point>
- struct envelope<Point, point_tag>
- : detail::envelope::envelope_point
- {};
- }
- #endif
- }}
- #endif
|