fixed a nasty bug in Matrix44<T>::ToEulerAngles (but it still suffers from Gimbal Lock)

This commit is contained in:
mtarini 2009-08-21 12:42:16 +00:00
parent 4c778ca971
commit 7f83000b93
1 changed files with 1 additions and 1 deletions

View File

@ -498,7 +498,7 @@ void Matrix44<T>::ToEulerAngles(T &alpha, T &beta, T &gamma)
{
alpha = atan2(ElementAt(1,2), ElementAt(2,2));
beta = asin(-ElementAt(0,2));
gamma = atan2(ElementAt(0,1), ElementAt(1,1));
gamma = atan2(ElementAt(0,1), ElementAt(0,0));
}
template <class T>