bounds

m3sh.traits.bounds(points)[source]

Bounding box vertices.

Corner vertices of the axis-aligned bounding box.

Parameters:

points (array_like, shape (n, k)) – Coordinates of \(n\) points in \(\mathbb{R}^k\), one point per row.

Returns:

  • a (~numpy.ndarray) – Holds the minimum value for each dimension.

  • b (~numpy.ndarray) – Holds the maximum value for each dimension.