]> git.tdb.fi Git - libs/gl.git/commitdiff
Use constructors to augment and reduce vectors
authorMikko Rasa <tdb@tdb.fi>
Thu, 23 May 2013 20:13:43 +0000 (23:13 +0300)
committerMikko Rasa <tdb@tdb.fi>
Thu, 23 May 2013 20:13:43 +0000 (23:13 +0300)
source/matrix.cpp

index 8cc9dcba3a513e49b5b7d9367bd3dae733e371ee..092d2c62ca149cb73764d8c40ab00d7382a8f874 100644 (file)
@@ -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