Merge pull request #446 from yeonseok-yi/master

Fixed error of aiQuaterniont::Rotate()
This commit is contained in:
Kim Kulling
2015-01-29 11:37:03 +01:00

View File

@@ -273,11 +273,10 @@ template<typename TReal>
inline aiVector3t<TReal> aiQuaterniont<TReal>::Rotate (const aiVector3t<TReal>& v)
{
aiQuaterniont q2(0.f,v.x,v.y,v.z), q = *this, qinv = q;
q.Conjugate();
qinv.Conjugate();
q = q*q2*qinv;
return aiVector3t<TReal>(q.x,q.y,q.z);
}
#endif