From a522bf6595c690177065dd91829f1fca4eeaaf30 Mon Sep 17 00:00:00 2001 From: maxcorsini Date: Tue, 3 Jul 2007 16:07:09 +0000 Subject: [PATCH] add DCM to Euler Angles method (to implement) --- vcg/math/quaternion.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/vcg/math/quaternion.h b/vcg/math/quaternion.h index 347fc49a..e6c25763 100644 --- a/vcg/math/quaternion.h +++ b/vcg/math/quaternion.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.17 2007/02/06 12:24:07 tarini +added a missing "Quaternion::" in "FromEulerAngles" + Revision 1.16 2007/02/05 13:55:21 corsini add euler angle to quaternion conversion @@ -56,6 +59,9 @@ updated access to matrix44 elements through V() instead simple [] Revision 1.6 2004/03/25 14:57:49 ponchio Microerror. ($LOG$ -> $Log: not supported by cvs2svn $ +Microerror. ($LOG$ -> Revision 1.17 2007/02/06 12:24:07 tarini +Microerror. ($LOG$ -> added a missing "Quaternion::" in "FromEulerAngles" +Microerror. ($LOG$ -> Microerror. ($LOG$ -> Revision 1.16 2007/02/05 13:55:21 corsini Microerror. ($LOG$ -> add euler angle to quaternion conversion Microerror. ($LOG$ -> @@ -130,6 +136,7 @@ public: void ToMatrix(Matrix44 &m) const; void ToMatrix(Matrix33 &m) const; + void ToEulerAngles(S &alpha, S &beta, S &gamma); void FromEulerAngles(S alpha, S beta, S gamma); Point3 Rotate(const Point3 vec) const; @@ -324,6 +331,12 @@ template void Quaternion::FromMatrix(Matrix44 &m) { } } +template +void Quaternion::ToEulerAngles(S &alpha, S &beta, S &gamma) +{ + //...TODO... +} + template void Quaternion::FromEulerAngles(S alpha, S beta, S gamma) {