diff options
author | bubnikv <bubnikv@gmail.com> | 2016-04-10 20:06:46 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2016-04-10 20:06:46 +0300 |
commit | 7d54e28e30a4dddc4ab0b5befc4c46d2fe05794b (patch) | |
tree | da10817ffc8c9a1b6475e8a333e3c4436902b160 /xs/src/libslic3r/MultiPoint.hpp | |
parent | c8ff517389264444bd0fa6a1b5dd9db132cf40cd (diff) |
Added optimized methods for point and polyline rotation.
Existing methods for rotation were optimized by calculating the sin/cos values once only.
Added an operator- for points.
Diffstat (limited to 'xs/src/libslic3r/MultiPoint.hpp')
-rw-r--r-- | xs/src/libslic3r/MultiPoint.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xs/src/libslic3r/MultiPoint.hpp b/xs/src/libslic3r/MultiPoint.hpp index 18d67a9e4..0f31fd318 100644 --- a/xs/src/libslic3r/MultiPoint.hpp +++ b/xs/src/libslic3r/MultiPoint.hpp @@ -22,6 +22,7 @@ class MultiPoint void scale(double factor); void translate(double x, double y); void translate(const Point &vector); + void rotate(double angle); void rotate(double angle, const Point ¢er); void reverse(); Point first_point() const; |