mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-18 20:28:08 -06:00
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.
This commit is contained in:
parent
c8ff517389
commit
7d54e28e30
4 changed files with 54 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue