Contents

SushiEngine

nlerp

template <typename T>
QuaternionT< T > nlerp(const QuaternionT< T > &a, QuaternionT< T > b, T t) noexcept

Parameters

NameTypeDescription
aconst QuaternionT< T > &
bQuaternionT< T >
tT

Interpolation parameter in [0, 1].

Returns

QuaternionT< T >

Description

Interpolates two rotations along the short arc and normalises the linear blend.

See also

engine/foundation/core/include/README.md