RegionNearest¶
Gives the point of a region closest to a given point. For a solid Disk or Ball an exterior point is projected onto the boundary, while an interior point maps to itself.
A Rectangle clamps the point into the box.
The nearest point of an infinite plane is the foot of the perpendicular: