fixed a nasty bug in Matrix44<T>::ToEulerAngles (but it still suffers from Gimbal Lock)
This commit is contained in:
parent
4c778ca971
commit
7f83000b93
|
|
@ -498,7 +498,7 @@ void Matrix44<T>::ToEulerAngles(T &alpha, T &beta, T &gamma)
|
||||||
{
|
{
|
||||||
alpha = atan2(ElementAt(1,2), ElementAt(2,2));
|
alpha = atan2(ElementAt(1,2), ElementAt(2,2));
|
||||||
beta = asin(-ElementAt(0,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>
|
template <class T>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue