From bef4835ca2a6b412982891f4ab13123f9795b079 Mon Sep 17 00:00:00 2001 From: malomo Date: Mon, 21 Mar 2016 15:16:50 +0000 Subject: [PATCH] added static identity function to matrix33 --- vcg/math/matrix33.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vcg/math/matrix33.h b/vcg/math/matrix33.h index f3ffeeb8..ab3caf56 100644 --- a/vcg/math/matrix33.h +++ b/vcg/math/matrix33.h @@ -82,6 +82,12 @@ public: (*this)[i][j]=m(i,j); } + static inline const Matrix33 &Identity( ) + { + static Matrix33 tmp; tmp.SetIdentity(); + return tmp; + } + /// Number of columns inline unsigned int ColumnsNumber() const {