diff options
Diffstat (limited to 'boost/geometry/strategies/cartesian/point_in_box.hpp')
-rw-r--r-- | boost/geometry/strategies/cartesian/point_in_box.hpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/boost/geometry/strategies/cartesian/point_in_box.hpp b/boost/geometry/strategies/cartesian/point_in_box.hpp index 275f7550e4..79f094113d 100644 --- a/boost/geometry/strategies/cartesian/point_in_box.hpp +++ b/boost/geometry/strategies/cartesian/point_in_box.hpp @@ -21,9 +21,9 @@ #include <boost/geometry/strategies/within.hpp> -namespace boost { namespace geometry { namespace strategy +namespace boost { namespace geometry { namespace strategy { - + namespace within { @@ -60,14 +60,14 @@ struct relate_point_box_loop { static inline bool apply(Point const& point, Box const& box) { - if (! SubStrategy::apply(get<Dimension>(point), - get<min_corner, Dimension>(box), + if (! SubStrategy::apply(get<Dimension>(point), + get<min_corner, Dimension>(box), get<max_corner, Dimension>(box)) ) { return false; } - + return relate_point_box_loop < SubStrategy, @@ -102,12 +102,12 @@ template > struct point_in_box { - static inline bool apply(Point const& point, Box const& box) + static inline bool apply(Point const& point, Box const& box) { return relate_point_box_loop < SubStrategy, - Point, Box, + Point, Box, 0, dimension<Point>::type::value >::apply(point, box); } @@ -126,13 +126,13 @@ namespace within { namespace services template <typename Point, typename Box> struct default_strategy < - point_tag, box_tag, - point_tag, areal_tag, - cartesian_tag, cartesian_tag, + point_tag, box_tag, + point_tag, areal_tag, + cartesian_tag, cartesian_tag, Point, Box > { - typedef within::point_in_box<Point, Box> type; + typedef within::point_in_box<Point, Box> type; }; @@ -146,9 +146,9 @@ namespace covered_by { namespace services template <typename Point, typename Box> struct default_strategy < - point_tag, box_tag, - point_tag, areal_tag, - cartesian_tag, cartesian_tag, + point_tag, box_tag, + point_tag, areal_tag, + cartesian_tag, cartesian_tag, Point, Box > { |