`); SciPySciPy Installing User Guide API reference Building from source Development Release notes GitHubGitHub TwitterTwitter Installing User Guide API reference Building from source Development Release notes GitHubGitHub TwitterTwitterSection Navigationscipyscipy.clusterscipy.constantsscipy.datasetsscipy.differentiatescipy.fftscipy.fftpackscipy.integratescipy.interpolatescipy.ioscipy.linalgscipy.ndimagescipy.odrscipy.optimizescipy.signalscipy.sparsescipy.spatialscipy.specialscipy..." />`); SciPySciPy Installing User Guide API reference Building from source Development Release notes GitHubGitHub TwitterTwitter Installing User Guide API reference Building from source Development Release notes GitHubGitHub TwitterTwitterSection Navigationscipyscipy.clusterscipy.constantsscipy.datasetsscipy.differentiatescipy.fftscipy.fftpackscipy.integratescipy.interpolatescipy.ioscipy.linalgscipy.ndimagescipy.odrscipy.optimizescipy.signalscipy.sparsescipy.spatialscipy.specialscipy..." /> Rectangle — SciPy v1.15.3 Manual
scipy.spatial.

Rectangle#

class scipy.spatial.Rectangle(maxes, mins)[source]#

Hyperrectangle class.

Represents a Cartesian product of intervals.

Methods

max_distance_point(x[, p])

Return the maximum distance between input and points in the hyperrectangle.

max_distance_rectangle(other[, p])

Compute the maximum distance between points in the two hyperrectangles.

min_distance_point(x[, p])

Return the minimum distance between input and points in the hyperrectangle.

min_distance_rectangle(other[, p])

Compute the minimum distance between points in the two hyperrectangles.

split(d, split)

Produce two hyperrectangles by splitting.

volume()

Total volume.