RegionDistance
RegionDistance[reg, p] gives the minimum distance from point p to the region.
Examples
Distance to a disk:
RegionDistance[Disk[{0, 0}, 1], {2, 0}]
(* 1 *)Distance between regions:
RegionDistance[Disk[{0, 0}, 1], Disk[{3, 0}, 1]]
(* 1 *)Please visit the official Wolfram Language Reference for more details.