This (together with the next few lines) expresses linear interpolation. Again, there must be a way to make this more readable.