mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-23 08:41:11 -06:00
More integration of Slic3r::Point::XS
This commit is contained in:
parent
159a009f96
commit
c9749ca3b3
9 changed files with 80 additions and 17 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue