lerp
Performs a linear interpolation between two 4D vectors a and b by an interpolant t.
The interpolant t is clamped to the range [0.0, 1.0].
When
t = 0.0(or less), this function returnsa.When
t = 1.0(or greater), this function returnsb.When
0.0 < t < 1.0, the return value is a point on the line segment strictly betweenaandb.
This function does not extrapolate; t values outside the [0.0, 1.0] range are clamped to this range before interpolation. The calculation is a + (b - a) * t_clamped.
Return
The interpolated Vector4.