Closest point on a plane

ID: closest-point-on-a-plane

For a nonzero normal vector and the plane equation , the closest point on a plane to is
It subtracts only the normal displacement. Substituting gives , so lies on the plane; the difference is a scalar multiple of its normal vector. These two checks identify the orthogonal projection onto a plane without solving a three-variable minimization problem.
For , , and , the residual gives
Indeed, , and . Choosing the plane point instead gives distance : being on the plane does not make a point the nearest one.
Figure 1.
The closest point on a plane is reached along its normal vector
. Original three-dimensional example , with and . The finite mesh is only a displayed patch of the infinite plane; it is not a physical measurement. Details.
As a function of , this projection is
It is an affine map, becoming a linear map when . Projecting a second time changes nothing. It preserves displacements along the plane and removes the normal displacement, so it is a concrete example of an idempotent map.

New to topics? Read the docs here!