RegionNearestFunction
RegionNearestFunction[reg, …] represents a function whose values give the nearest point in the region reg.
Examples
rnf = RegionNearestFunction[Disk[]];
rnf[{2, 0}]Please visit the official Wolfram Language Reference for more details.