tell it both positions and it will tell you the equation
who ever figured out m = y1-y2/x1-x2 and y=mx+b