Skip to content

cf_quat_slerp

Category: math
GitHub: cute_math3d.h


Spherically interpolates between two rotations.

CF_Quat cf_quat_slerp(CF_Quat a, CF_Quat b, float t)
Parameters Description
a The rotation at t == 0.
b The rotation at t == 1.
t The interpolant, from 0 to 1.

Return Value

Returns a unit quaternion along the shortest arc from a to b.

CF_Quat
cf_quat_from_axis_angle
cf_quat_norm
cf_lerp