Slerp

fun Slerp(q1: Quaternion, q2: Quaternion, alpha: Float, res: Quaternion)

Performs spherical linear interpolation (SLERP) between two quaternions.

Parameters

q1

The starting quaternion.

q2

The target quaternion.

alpha

The interpolation factor.

res

The quaternion to store the result in.