diff --git a/vcg/math/matrix33.h b/vcg/math/matrix33.h index c1044517..d28d22f5 100644 --- a/vcg/math/matrix33.h +++ b/vcg/math/matrix33.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.14 2006/06/22 08:00:05 ganovelli +bug in operator + with MatrixxDig + Revision 1.13 2006/01/20 16:41:44 pietroni added operators: operator -= ( const Matrix33Diag &p ) @@ -79,6 +82,7 @@ created #include #include +#include #include #include @@ -124,6 +128,17 @@ public: for(int i=0;i<9;++i) a[i] = v[i]; } + /// create from Matrix44 excluding row and column k + Matrix33 (const Matrix44 & m, const int & k) + { + int i,j, r=0, c=0; + for(i = 0; i< 4;++i)if(i!=k){c=0; + for(j=0; j < 4;++j)if(j!=k) + { (*this)[r][c] = m[i][j]; ++c;} + ++r; + } + } + /// Number of columns inline unsigned int ColumnsNumber() const {