fix issue #36 (missing return *this in Rotation2D

This commit is contained in:
Gael Guennebaud 2009-08-11 15:11:47 +02:00
parent ea884e6f48
commit a4f6642518

View File

@ -85,7 +85,7 @@ public:
/** Concatenates two rotations */
inline Rotation2D& operator*=(const Rotation2D& other)
{ return m_angle += other.m_angle; }
{ return m_angle += other.m_angle; return *this; }
/** Applies the rotation to a 2D vector */
Vector2 operator* (const Vector2& vec) const