Fixed angle conversion issues

Fixed a variable name and method that should be const.
Also fixed several angle conversion functions that didn't convert the
angle correct.
This commit is contained in:
Nathan Bowhay 2015-02-03 12:16:06 -08:00
parent c7e0d83587
commit ad267f0505
3 changed files with 43 additions and 28 deletions

View file

@ -163,7 +163,7 @@ EulerF MatrixF::toEuler() const
const F32 * mat = m;
EulerF r;
r.x = mAsin(mat[MatrixF::idx(2,1)]);
r.x = mAsin(mClampF(mat[MatrixF::idx(2,1)], -1.0, 1.0));
if(mCos(r.x) != 0.f)
{