diff --git a/vcg/math/matrix44.h b/vcg/math/matrix44.h index 75ee14b4..55cdeb5c 100644 --- a/vcg/math/matrix44.h +++ b/vcg/math/matrix44.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.20 2004/10/18 15:03:14 fiorin +Updated interface: all Matrix classes have now the same interface + Revision 1.19 2004/10/07 14:23:57 ganovelli added function to take rows and comlumns. Added toMatrix and fromMatrix to comply RotationTYpe prototype in Similarity.h @@ -288,13 +291,15 @@ template const T *Matrix44::V() const { return _a;} template Matrix44 Matrix44::operator+(const Matrix44 &m) const { Matrix44 ret; for(int i = 0; i < 16; i++) - ret[i] = V()[i] + m.V()[i]; + ret.V()[i] = V()[i] + m.V()[i]; + return ret; } template Matrix44 Matrix44::operator-(const Matrix44 &m) const { Matrix44 ret; for(int i = 0; i < 16; i++) - ret[i] = V()[i] - m.V()[i]; + ret.V()[i] = V()[i] - m.V()[i]; + return ret; } template Matrix44 Matrix44::operator*(const Matrix44 &m) const {