Merge pull request #1419 from irei1as/patch-1

mQuat.h change to fix QuatF::angleBetween
This commit is contained in:
Anis 2016-02-16 00:22:39 +01:00
commit 168a2fe029

View file

@ -227,8 +227,8 @@ inline F32 QuatF::dot( const QuatF &q ) const
inline F32 QuatF::angleBetween( const QuatF & q ) inline F32 QuatF::angleBetween( const QuatF & q )
{ {
// angle between to quaternions // angle between two normalized quaternions.
return mAcos(x * q.x + y * q.y + z * q.z + w * q.w); return mAcos(q.dot(*this)) * 2.0f;
} }
#endif // _MQUAT_H_ #endif // _MQUAT_H_