quaternion_slerp

Returns a spherical linear interpolation between two quaternions.

Inputs

from_quaternion

The source quaternion, corresponding to the zero fraction.

to_quaternion

The destination quaternion, corresponding to the full fraction.

fraction

Interpolation parameter.

clamp_negative

Clamp negative fraction values to zero.

clamp_above_one

Clamp to 1 if the fraction value is above 1.

always_use_shorter_arc

Always use the shorter arc between the two rotations.

use_nlerp_if_closer

Performs a normalized linear interpolation if closer if the quaternions differ by less than this tolerance. This saves computation and is more stable when the difference is very small.

Output

interpolated

The interpolated quaternion.