From a9f41594906af5cadc65f0eb17f90d1751f267ca Mon Sep 17 00:00:00 2001 From: ponchio Date: Mon, 8 Mar 2004 14:49:58 +0000 Subject: [PATCH] Transpose had some errors. --- vcg/math/matrix44.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vcg/math/matrix44.h b/vcg/math/matrix44.h index 9826b58b..12ced089 100644 --- a/vcg/math/matrix44.h +++ b/vcg/math/matrix44.h @@ -374,11 +374,11 @@ template Point3 operator*(const Point3 &p, const Matrix44 &m) template Matrix44 &Transpose(Matrix44 &m) { for(int i = 1; i < 4; i++) for(int j = 0; j < i; j++) { - T t = element(i, j); - element(i, j) = element(j, i); - element(j, i) = t; + T t = m.element(i, j); + m.element(i, j) = m.element(j, i); + m.element(j, i) = t; } - return *this; + return m; }