Template Function TRAP::Math::SLerp(const tQuat<T>&, const tQuat<T>&, T)#
Function Documentation#
-
template<typename T>
constexpr tQuat<T> TRAP::Math::SLerp(const tQuat<T> &x, const tQuat<T> &y, T a)# Spherical linear interpolation of two quaternions.
- Parameters:
x – A quaternion.
y – A quaternion.
a – Interpolation factor. The interpolation is defined beyond the range [0, 1].
- Returns:
Interpolated quaternions.