mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-31 17:12:56 +00:00
More integration of Slic3r::Point::XS
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user