Quaternion: replace conversion in rotate() with AxisAngle call

This commit is contained in:
Matthias Grob 2017-10-17 08:14:02 +02:00
parent b241cf5c95
commit ee2219b836

View File

@ -330,14 +330,12 @@ public:
/**
* Rotate quaternion from rotation vector
* TODO replace with AxisAngle call
*
* @param vec rotation vector
*/
void rotate(const Vector<Type, 3> &vec)
void rotate(const AxisAngle<Type> &vec)
{
Quaternion res;
res.from_axis_angle(vec);
Quaternion res(vec);
(*this) = res * (*this);
}