src/mathfunctions.cpp

changeset 1313
4baed9f54de3
parent 1161
e6a5ff67c057
child 1315
23d48a709ffc
--- a/src/mathfunctions.cpp	Fri Mar 23 19:30:53 2018 +0200
+++ b/src/mathfunctions.cpp	Fri Mar 23 21:30:24 2018 +0200
@@ -27,9 +27,9 @@
 
 void MathFunctions::rotateVertex(Vertex& vertex, const Vertex& rotationPoint, const Matrix& transformationMatrix) const
 {
-	vertex -= rotationPoint;
+	vertex -= rotationPoint.toVector();
 	vertex.transform (transformationMatrix, {0, 0, 0});
-	vertex += rotationPoint;
+	vertex += rotationPoint.toVector();
 }
 
 

mercurial