RegionDistance
RegionDistance[reg,p] gives the minimum distance from the point p to the region reg.
RegionDistance[reg1,reg2] gives the minimum distance between points in the regions reg1 and reg2.
RegionDistance[reg] gives a RegionDistanceFunction[…] that can be applied repeatedly to different points.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.