From c26a1aa94ba5dfdf3b57c1a66a26cc1b0bf66d67 Mon Sep 17 00:00:00 2001 From: cignoni Date: Fri, 13 Jul 2007 00:01:47 +0000 Subject: [PATCH] added a static (unefficient!) identity member --- vcg/math/matrix44.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/vcg/math/matrix44.h b/vcg/math/matrix44.h index b0709172..344fc937 100644 --- a/vcg/math/matrix44.h +++ b/vcg/math/matrix44.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.34 2007/07/12 06:42:01 cignoni +added the missing static Construct() member + Revision 1.33 2007/07/03 16:06:48 corsini add DCM to Euler Angles conversion @@ -270,6 +273,13 @@ public: Matrix44 tmp; tmp.FromMatrix(b); return tmp; } + + static inline const Matrix44 &Identity( ) + { + static Matrix44 tmp; tmp.SetIdentity(); + return tmp; + } + };