diff -r cef43609a374 -r 0133e565e072 src/vertex.cpp --- a/src/vertex.cpp Sat Dec 14 23:00:01 2019 +0200 +++ b/src/vertex.cpp Wed Jan 01 17:45:56 2020 +0200 @@ -157,20 +157,23 @@ } /* - * Transforms this vertex with a tranformation matrix and returns the result. + * Transforms the specified vertex with a transformation matrix */ -Point3D math::transform(const Point3D point, const GLRotationMatrix& matrix) +Point3D math::transform(const Point3D& point, const Matrix4x4& matrix) { return { matrix(0, 0) * point.x + matrix(0, 1) * point.y - + matrix(0, 2) * point.z, + + matrix(0, 2) * point.z + + matrix(0, 3), matrix(1, 0) * point.x + matrix(1, 1) * point.y - + matrix(1, 2) * point.z, + + matrix(1, 2) * point.z + + matrix(1, 3), matrix(2, 0) * point.x + matrix(2, 1) * point.y - + matrix(2, 2) * point.z, + + matrix(2, 2) * point.z + + matrix(2, 3), }; }