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