Linear interpolation function
An initial value when weight is 0.
A terminal value when weight is 1.
A weight between 0 and 1.
The interpolated value between a and b with weight w.
Linear interpolation function