Interpolation code handles a general line.