PrusaSlicer-NonPlainar/xs/src/ExPolygonCollection.cpp

30 lines
625 B
C++
Raw Normal View History

#include "ExPolygonCollection.hpp"
namespace Slic3r {
void
ExPolygonCollection::scale(double factor)
{
2013-07-18 17:09:07 +00:00
for (ExPolygonsPtr::iterator it = expolygons.begin(); it != expolygons.end(); ++it) {
(**it).scale(factor);
}
}
void
ExPolygonCollection::translate(double x, double y)
{
2013-07-18 17:09:07 +00:00
for (ExPolygonsPtr::iterator it = expolygons.begin(); it != expolygons.end(); ++it) {
(**it).translate(x, y);
}
}
void
ExPolygonCollection::rotate(double angle, Point* center)
{
2013-07-18 17:09:07 +00:00
for (ExPolygonsPtr::iterator it = expolygons.begin(); it != expolygons.end(); ++it) {
(**it).rotate(angle, center);
}
}
}