mirror of
https://github.com/boostorg/geometry.git
synced 2026-02-17 13:52:09 +00:00
[buffer] revert replacement of covered_by with within
This commit is contained in:
@@ -81,7 +81,7 @@ struct check_original<polygon_tag>
|
||||
static inline int apply(Point const& point, Geometry const& geometry,
|
||||
DistanceStrategy const& )
|
||||
{
|
||||
return geometry::within(point, geometry) ? 1 : -1;
|
||||
return geometry::covered_by(point, geometry) ? 1 : -1;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ struct check_original<multi_polygon_tag>
|
||||
template <typename Point, typename Geometry, typename DistanceStrategy>
|
||||
static inline int apply(Point const& point, Geometry const& geometry, DistanceStrategy const& distance_strategy)
|
||||
{
|
||||
return geometry::within(point, geometry) ? 1 : -1;
|
||||
return geometry::covered_by(point, geometry) ? 1 : -1;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user