diff --git a/matrix/Quaternion.hpp b/matrix/Quaternion.hpp index f4a859fca9..d98051375c 100644 --- a/matrix/Quaternion.hpp +++ b/matrix/Quaternion.hpp @@ -330,14 +330,12 @@ public: /** * Rotate quaternion from rotation vector - * TODO replace with AxisAngle call * * @param vec rotation vector */ - void rotate(const Vector &vec) + void rotate(const AxisAngle &vec) { - Quaternion res; - res.from_axis_angle(vec); + Quaternion res(vec); (*this) = res * (*this); }