Template Function TRAP::Math::AngleAxis#

Function Documentation#

template<typename T>
constexpr tQuat<T> TRAP::Math::AngleAxis(const T &angle, const Vec<3, T> &v)#

Build a quaternion from an angle and a normalized axis.

Parameters:
  • angle – Angle expressed in radians.

  • v – Axis of the quaternion, must be normalized.

Returns:

Quaternion.