Subtract one point's coordinates from the other's to find direction ratios for the line through the two distinct points. The sum of the squared differences is the square of the distance between them.
Multiplying every direction ratio by the same nonzero constant preserves the undirected line. A negative multiplier reverses the oriented direction.
For direction ratios \((a,b,c)\), divide each by \(\sqrt{a^2+b^2+c^2}\). The resulting numbers are cosines of the angles with the positive axes. Their squares sum to 1.