lin2 function

Linear function defined from two planar points (x1,y1) and (x2,y2)