31 vertex.transform (transformationMatrix, Origin); |
31 vertex.transform (transformationMatrix, Origin); |
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 LDObjectList& objects) const |
36 void MathFunctions::rotateObjects(int l, int m, int n, double angle, const QVector<LDObject*>& objects) const |
37 { |
37 { |
38 Vertex rotationPoint = getRotationPoint (objects); |
38 Vertex rotationPoint = getRotationPoint (objects); |
39 double cosAngle = cos(angle); |
39 double cosAngle = cos(angle); |
40 double sinAngle = sin(angle); |
40 double sinAngle = sin(angle); |
41 |
41 |