m = (Y2-Y1) / (X2-X1)
Distance = Square Root ( (X2-X1)2 + (Y2-Y1)2 )
Angle = arctan ( m )
Line of Equation is y = mx + b
Where: m = slope
For example, Two point (x1, y1) is (2, 5), (x2, y2) is (6, 8)
Then m = (8 - 5) / (6 - 2) = 0.75.
Distance = Sqrt((8-5)2 + (6-2)2 )) = 5.
Angle = arctan ( 0.75 ) = 36.86989765
Equation: Y=0.75x + 3.5