RegionDistanceFunction
RegionDistanceFunction[reg, …] represents a function whose values give the distance from a point to the region reg.
Examples
rdf = RegionDistanceFunction[Disk[]];
rdf[{2, 0}]Please visit the official Wolfram Language Reference for more details.