Spherical linear interpolation from a (at t = 0) to b (at t = 1) along the shorter arc.
When the quaternions' dot product cos θ exceeds 0.9995, so the two rotations differ by less than about 3.6 degrees, it returns normalized linear interpolation to avoid dividing by a vanishing sin θ. A t outside [0, 1] extrapolates along the same arc.
Spherical linear interpolation from
a(att = 0) tob(att = 1) along the shorter arc.When the quaternions' dot product
cos θexceeds0.9995, so the two rotations differ by less than about 3.6 degrees, it returns normalized linear interpolation to avoid dividing by a vanishingsin θ. Atoutside[0, 1]extrapolates along the same arc.