Fixed Quaternion operator*= added regression test.

This commit is contained in:
Hauke Heibel
2010-01-28 10:32:44 +01:00
parent 98a584ceb8
commit 33abe75afa
2 changed files with 5 additions and 1 deletions

View File

@@ -377,7 +377,8 @@ template <class Derived>
template <class OtherDerived>
EIGEN_STRONG_INLINE Derived& QuaternionBase<Derived>::operator*= (const QuaternionBase<OtherDerived>& other)
{
return (derived() = derived() * other.derived());
derived() = derived() * other.derived();
return derived();
}
/** Rotation of a vector by a quaternion.