Add additional translate() functions to accept a Point or Pointf for convenience.

This commit is contained in:
Joseph Lenox 2018-05-06 20:36:40 -05:00 committed by Joseph Lenox
parent bbbe7e7560
commit 9c13da7df0

View File

@ -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 &center);
template <class T> bool contains(const T &item) const;
bool contains_b(const Point &point) const;