SciPy

scipy.spatial.Rectangle.min_distance_rectangle

Rectangle.min_distance_rectangle(other, p=2.0)[source]

Compute the minimum distance between points in the two hyperrectangles.

Parameters:
other : hyperrectangle

Input.

p : float

Input.