Distance from a point to a line
ID: distance-from-a-point-to-a-line
For a line with , its unit normal is . Choose any point on the line and project the displacement to onto this normal. The absolute value of that projection gives the title formula. This is the shortest Euclidean distance, because any displacement to a different point on the line has the same normal component and an additional orthogonal tangential component.
New to topics? Read the docs here!