RegionNearest gives a point in the region that is nearest another point, but what about the nearest point about another region? I'd like to find the minimum linear distance between any two points on the boundaries of two separate regions.
dm = RegionPlot@{DelaunayMesh@RandomReal[1, {25, 2}],
DelaunayMesh@RandomReal[{1, 2}, {25, 2}]}
My naive first approach is slow:
dist[r1_, r2_] := Min[EuclideanDistance[RegionNearest[r2, #], #] & /@
RandomPoint[RegionBoundary[r1], 100]]