mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-03 23:00:38 +08:00
Add additional translate() functions to accept a Point or Pointf for convenience.
This commit is contained in:
parent
bbbe7e7560
commit
9c13da7df0
@ -24,6 +24,8 @@ class ExPolygonCollection
|
||||
operator ExPolygons&();
|
||||
void scale(double factor);
|
||||
void translate(double x, double y);
|
||||
void translate(const Point offset) { translate(static_cast<coordf_t>(offset.x), static_cast<coordf_t>(offset.y)); }
|
||||
void translate(const Pointf offset) { translate(offset.x, offset.y); }
|
||||
void rotate(double angle, const Point ¢er);
|
||||
template <class T> bool contains(const T &item) const;
|
||||
bool contains_b(const Point &point) const;
|
||||
|
Loading…
x
Reference in New Issue
Block a user