26 |
26 |
27 |
27 |
28 void MathFunctions::rotateVertex(Vertex& vertex, const Vertex& rotationPoint, const Matrix& transformationMatrix) const |
28 void MathFunctions::rotateVertex(Vertex& vertex, const Vertex& rotationPoint, const Matrix& transformationMatrix) const |
29 { |
29 { |
30 vertex -= rotationPoint; |
30 vertex -= rotationPoint; |
31 vertex.transform (transformationMatrix, Origin); |
31 vertex.transform (transformationMatrix, {0, 0, 0}); |
32 vertex += rotationPoint; |
32 vertex += rotationPoint; |
33 } |
33 } |
34 |
34 |
35 |
35 |
36 void MathFunctions::rotateObjects(int l, int m, int n, double angle, const QVector<LDObject*>& objects) const |
36 void MathFunctions::rotateObjects(int l, int m, int n, double angle, const QVector<LDObject*>& objects) const |