lerpUnclamped
Performs an unclamped linear interpolation between two vectors a and b by an interpolant t.
The interpolant t is not clamped. This means if t is outside the [0.0, 1.0] range, the function will perform extrapolation.
When
t = 0.0, this function returnsa.When
t = 1.0, this function returnsb.When
0.0 < t < 1.0, the return value is a point on the line segment betweenaandb.When
t < 0.0ort > 1.0, the return value is a point on the infinite line defined byaandb, extrapolated beyond the segment.
The calculation is a + (b - a) * t.
Return
The interpolated or extrapolated Vector3.
Parameters
a
The starting vector (value when t=0).
b
The "ending" vector (value when t=1).
t
The interpolation/extrapolation factor. It is not clamped.