Template Function TRAP::Math::Rotate(const tQuat<T>&, const T&, const Vec<3, T>&)#
Function Documentation#
-
template<typename T>
constexpr tQuat<T> TRAP::Math::Rotate(const tQuat<T> &q, const T &angle, const Vec<3, T> &v)# Rotates a quaternion from a vector of 3 components axis and an angle.
- Parameters:
q – Source orientation.
angle – Angle expressed in radians.
v – Axis of the rotation.
- Returns:
Rotated quaternion.