added static identity function to matrix33

This commit is contained in:
Luigi Malomo 2016-03-21 15:16:50 +00:00
parent 7b89a1f125
commit bef4835ca2
1 changed files with 6 additions and 0 deletions

View File

@ -82,6 +82,12 @@ public:
(*this)[i][j]=m(i,j); (*this)[i][j]=m(i,j);
} }
static inline const Matrix33 &Identity( )
{
static Matrix33<S> tmp; tmp.SetIdentity();
return tmp;
}
/// Number of columns /// Number of columns
inline unsigned int ColumnsNumber() const inline unsigned int ColumnsNumber() const
{ {