mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 11:49:02 +08:00
fix issue #36 (missing return *this in Rotation2D
This commit is contained in:
parent
ea884e6f48
commit
a4f6642518
@ -85,7 +85,7 @@ public:
|
|||||||
|
|
||||||
/** Concatenates two rotations */
|
/** Concatenates two rotations */
|
||||||
inline Rotation2D& operator*=(const Rotation2D& other)
|
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 */
|
/** Applies the rotation to a 2D vector */
|
||||||
Vector2 operator* (const Vector2& vec) const
|
Vector2 operator* (const Vector2& vec) const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user