return the value by linear interpolation.