diff --git a/src/Magnum/MeshTools/Transform.h b/src/Magnum/MeshTools/Transform.h index 1cf1065c8..444ebccf6 100644 --- a/src/Magnum/MeshTools/Transform.h +++ b/src/Magnum/MeshTools/Transform.h @@ -55,22 +55,22 @@ Example usage: @ref Quaternion::transformVectorNormalized() @todo GPU transform feedback implementation (otherwise this is only bad joke) */ -template void transformVectorsInPlace(const Math::Matrix4& matrix, U& vectors) { +template void transformVectorsInPlace(const Math::Matrix4& matrix, U&& vectors) { for(auto& vector: vectors) vector = matrix.transformVector(vector); } /** @overload */ -template void transformVectorsInPlace(const Math::Matrix3& matrix, U& vectors) { +template void transformVectorsInPlace(const Math::Matrix3& matrix, U&& vectors) { for(auto& vector: vectors) vector = matrix.transformVector(vector); } /** @overload */ -template void transformVectorsInPlace(const Math::Complex& complex, U& vectors) { +template void transformVectorsInPlace(const Math::Complex& complex, U&& vectors) { for(auto& vector: vectors) vector = complex.transformVector(vector); } /** @overload */ -template void transformVectorsInPlace(const Math::Quaternion& normalizedQuaternion, U& vectors) { +template void transformVectorsInPlace(const Math::Quaternion& normalizedQuaternion, U&& vectors) { for(auto& vector: vectors) vector = normalizedQuaternion.transformVectorNormalized(vector); } @@ -106,22 +106,22 @@ Example usage: @ref Matrix4::transformPoint(), @ref DualQuaternion::transformPointNormalized() */ -template void transformPointsInPlace(const Math::Matrix4& matrix, U& points) { +template void transformPointsInPlace(const Math::Matrix4& matrix, U&& points) { for(auto& point: points) point = matrix.transformPoint(point); } /** @overload */ -template void transformPointsInPlace(const Math::Matrix3& matrix, U& points) { +template void transformPointsInPlace(const Math::Matrix3& matrix, U&& points) { for(auto& point: points) point = matrix.transformPoint(point); } /** @overload */ -template void transformPointsInPlace(const Math::DualComplex& dualComplex, U& points) { +template void transformPointsInPlace(const Math::DualComplex& dualComplex, U&& points) { for(auto& point: points) point = dualComplex.transformPoint(point); } /** @overload */ -template void transformPointsInPlace(const Math::DualQuaternion& normalizedDualQuaternion, U& points) { +template void transformPointsInPlace(const Math::DualQuaternion& normalizedDualQuaternion, U&& points) { for(auto& point: points) point = normalizedDualQuaternion.transformPointNormalized(point); }