Linear interpolates a value between a and b by t. If t is 0, then the result will be a. If t is 1, then the result will be b. t will be clamped to a value between 0 and 1.
a
b
t
The start value.
The end value.
The interpolation value between 0 and 1.
The interpolated value between a and b.
Linear interpolates a value between
aandbbyt. Iftis 0, then the result will bea. Iftis 1, then the result will beb.twill be clamped to a value between 0 and 1.