Can u formulate an equation on a straight line between 2 dots : M1 (x1,y2) and M2 (x2,y2) ?
Yes. Definitely
First, calculate the slope(m)
m=y2−y1x2−x1
Then the formula is y = mx+b
Substitute any pair of coordinates into x and y to calculate b