Linearly interpolates between a and b by a ratio.
interpolated value between the two floats
the beginning value
the ending value
ratio between the two floats