Computes the linear interpolation between @a and @b for @t.
the computed value
the start
the end
the interpolation rate