From: Mikko Rasa Date: Thu, 23 May 2013 20:13:43 +0000 (+0300) Subject: Use constructors to augment and reduce vectors X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=cdf6744cb3a73030bc767a23b7ed5215919e53c5;p=libs%2Fgl.git Use constructors to augment and reduce vectors --- 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