The point-line distance is the shortest Euclidean distance from a point to a line. If the line
is
with
,
then the distance is
The subtracted term is the orthogonal projection of
onto the direction of the line. Equivalent coordinate formulas
are given by the two-dimensional
point-line distance and three-dimensional
point-line distance.