| Parameter | Description |
|---|---|
| a | The first vector to interpolate between. |
| b | The second vector to interpolate between. |
| t | The amount to interpolate. |
Vector3
The spherically interpolated vector between a and b. Values of t outside the range [0, 1] extrapolate beyond a or b.
Spherically interpolates between two vectors.
Interpolates between a and b by amount t. The difference between this and linear
interpolation (aka, "lerp") is that the vectors are treated as directions rather than points
in space. The direction of the returned vector is interpolated by the angle and its
magnitude is interpolated between the magnitudes of a and b.
Note: This static method can slerp beyond the a and b vectors. This means t can be less than zero or greater than one.
Additional resources: Slerp.