We can express lines in in vector form. Where is an axis-intercept, is a vector in the same direction (probably parallel to it) and . In other words, a line is spanned by one vector.

We also have the corresponding parametric form of the line, where we basically just take the corresponding components:

The distance between some point and the line is:

See also