Distance from a point to a line in three dimensions

ID: distance-from-a-point-to-a-line-in-three-dimensions

For distinct points , the cross product in the numerator has magnitude twice the area of the triangle with third vertex . The same double area is the base length times the perpendicular height from , proving the displayed Euclidean distance. Equivalently, let and project onto the line direction. The squared distance is ; Lagrange's identity gives the same cross-product formula.

New to topics? Read the docs here!