--- 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(); }