Slope and equation
m = (y₂ − y₁)/(x₂ − x₁), and b = y₁ − mx₁ gives y = mx + b. Distance is √((Δx)²+(Δy)²). The angle uses atan(m), expressed between −90° and 90°; it is line inclination, not a directional compass bearing.
Worked example
Points (1,2) and (4,8) give Δx=3, Δy=6, slope 2 and y=2x. Distance is √45 ≈ 6.708204. Reversing the points leaves the slope and distance unchanged.
Special cases
Equal x coordinates with different y values form a vertical line x=constant; slope is undefined, not zero. Equal y values give a horizontal line with slope zero. Two identical points cannot determine one unique line and are rejected. Coordinates are limited to ±1 billion.