More integration of Slic3r::Point::XS

This commit is contained in:
Alessandro Ranellucci 2013-07-15 16:04:49 +02:00
parent 159a009f96
commit c9749ca3b3
9 changed files with 80 additions and 17 deletions

View file

@ -29,8 +29,7 @@ void
Polyline::scale(double factor)
{
for (Points::iterator it = points.begin(); it != points.end(); ++it) {
(*it).x *= factor;
(*it).y *= factor;
(*it).scale(factor);
}
}
@ -38,8 +37,7 @@ void
Polyline::translate(double x, double y)
{
for (Points::iterator it = points.begin(); it != points.end(); ++it) {
(*it).x += x;
(*it).y += y;
(*it).translate(x, y);
}
}