From cdf6744cb3a73030bc767a23b7ed5215919e53c5 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 23 May 2013 23:13:43 +0300 Subject: [PATCH] Use constructors to augment and reduce vectors --- source/matrix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/matrix.cpp b/source/matrix.cpp index 8cc9dcba..092d2c62 100644 --- a/source/matrix.cpp +++ b/source/matrix.cpp @@ -63,7 +63,7 @@ Vector4 Matrix::operator*(const Vector4 &vec) const Vector3 Matrix::operator*(const Vector3 &vec) const { - return Geometry::reduce_vector((*this)*Geometry::augment_vector(vec, 1.0f)); + return Vector3((*this)*Vector4(vec, 1.0f)); } double Matrix::operator[](unsigned i) const -- 2.45.2