Avoid crossing perimeters: Further refactoring for clarity, code review.

This commit is contained in:
Vojtech Bubnik committed 2020-11-17 15:34:50 +01:00
1 parent 62ab17bf6e
commit f206b743fd
8 files changed
+363 -393

No files matched your search

-7
View File
@@ -18,13 +18,6 @@ void MultiPoint::scale(double factor_x, double factor_y)
}
}
void MultiPoint::translate(double x, double y)
{
Vector v(x, y);
for (Point &pt : points)
pt += v;
}
void MultiPoint::translate(const Point &v)
{
for (Point &pt : points)