New get_extents(const std::vector<Points> &pts),

refactored Lian Barsky line clipping
This commit is contained in:
Vojtech Bubnik 2020-11-16 10:20:47 +01:00
parent 32362cff0b
commit 84693a5810
5 changed files with 29 additions and 19 deletions

View file

@ -298,11 +298,6 @@ void Polygon::densify(float min_length, std::vector<float>* lengths_ptr)
assert(points.size() == lengths.size() - 1);
}
BoundingBox get_extents(const Points &points)
{
return BoundingBox(points);
}
BoundingBox get_extents(const Polygon &poly)
{
return poly.bounding_box();