#ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_SECTIONS_FUNCTIONS_HPP
#define BOOST_GEOMETRY_ALGORITHMS_DETAIL_SECTIONS_FUNCTIONS_HPP
-
#include <boost/geometry/core/access.hpp>
+#include <boost/geometry/core/coordinate_type.hpp>
#include <boost/geometry/algorithms/detail/recalculate.hpp>
#include <boost/geometry/policies/robustness/robust_point_type.hpp>
<
std::size_t Dimension,
typename Point,
- typename RobustBox,
+ typename Box,
typename RobustPolicy
>
static inline bool preceding(int dir,
Point const& point,
- RobustBox const& point_robust_box,
- RobustBox const& other_robust_box,
+ Box const& point_box,
+ Box const& other_box,
RobustPolicy const& robust_policy)
{
typename geometry::robust_point_type<Point, RobustPolicy>::type robust_point;
+ assert_coordinate_type_equal(robust_point, point_box);
geometry::recalculate(robust_point, point, robust_policy);
- return preceding_check<Dimension, Point>::apply(dir, robust_point, point_robust_box, other_robust_box);
+
+ return preceding_check<Dimension, Box>::apply(dir, robust_point,
+ point_box,
+ other_box);
}
template
<
std::size_t Dimension,
typename Point,
- typename RobustBox,
+ typename Box,
typename RobustPolicy
>
static inline bool exceeding(int dir,
Point const& point,
- RobustBox const& point_robust_box,
- RobustBox const& other_robust_box,
+ Box const& point_box,
+ Box const& other_box,
RobustPolicy const& robust_policy)
{
- return preceding<Dimension>(-dir, point, point_robust_box, other_robust_box, robust_policy);
+ return preceding<Dimension>(-dir, point, point_box, other_box, robust_policy);
}