mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-30 08:42:00 +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)
|
operator* (const Matrix3& a, const AngleAxis& b)
|
||||||
{ return a * b.toRotationMatrix(); }
|
{ 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 */
|
/** \returns the inverse rotation, i.e., an angle-axis with opposite rotation angle */
|
||||||
AngleAxis inverse() const
|
AngleAxis inverse() const
|
||||||
{ return AngleAxis(-m_angle, m_axis); }
|
{ return AngleAxis(-m_angle, m_axis); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user