src/mathfunctions.cpp

changeset 1161
e6a5ff67c057
parent 1147
a26568aa3cce
child 1192
317f4ce38f3f
child 1313
4baed9f54de3
equal deleted inserted replaced
1160:2cf16ba952bf 1161:e6a5ff67c057
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

mercurial