SciPy
Rectangle.min_distance_rectangle
Compute the minimum distance between points in the two hyperrectangles.
Input.
previous
scipy.spatial.Rectangle.min_distance_point
next
scipy.spatial.Rectangle.split