Template Function TRAP::Math::Lerp(const tQuat<T>&, const tQuat<T>&, T)#

Function Documentation#

template<typename T>
constexpr tQuat<T> TRAP::Math::Lerp(const tQuat<T> &x, const tQuat<T> &y, T a)#

Linear interpolation of two quaternions. The interpolation is oriented.

Parameters:
  • x – A quaternion.

  • y – A quaternion.

  • a – Interpolation factor. The interpolation is defined in the range [0, 1].

Returns:

Linear interpolation of two quaternions.