slerp

Interpolate two quaternions spherically.

slerp
(
T
)
(
const Quaternion!(T) q1
,
const Quaternion!(T) q2
,
T t
)

Parameters

q1 Quaternion!(T)

target quaternion

q2 Quaternion!(T)

target quaternion

t T

interpolation coefficient (0 <= t <= 1)

Return Value

Type: Quaternion!(T)

Interpolated quaternion

Meta