Function rs_pbrt::core::quaternion::quat_slerp
source · [−]pub fn quat_slerp(t: Float, q1: &Quaternion, q2: &Quaternion) -> Quaternion
Expand description
Spherical linear interpolation gives constant speed motion along great circle arcs on the surface of a sphere and consequently has two desirable properties for interpolating rotations:
-
The path to get between two rotations is the shortest possible path in rotation space.
-
The speed of interpolation is constant across the interpolation range