mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-24 14:45:14 +08:00
add AngleAxis::operator*(const Vector3&)
This commit is contained in:
parent
6b591d06c5
commit
6a36b5a6e0
@ -104,6 +104,11 @@ public:
|
||||
operator* (const Matrix3& a, const AngleAxis& b)
|
||||
{ return a * b.toRotationMatrix(); }
|
||||
|
||||
/** Applies rotation to vector */
|
||||
inline typename ProductReturnType<Matrix3,Vector3>::Type
|
||||
operator* (const Vector3& other) const
|
||||
{ return toRotationMatrix() * other; }
|
||||
|
||||
/** \returns the inverse rotation, i.e., an angle-axis with opposite rotation angle */
|
||||
AngleAxis inverse() const
|
||||
{ return AngleAxis(-m_angle, m_axis); }
|
||||
|
Loading…
Reference in New Issue
Block a user