A linearly interpolated value is given by y = y0 + (x-x0) y1-y0 x1-x0