coords.Coords.bounding_box#

Coords.bounding_box()#

Return the bounding box of a set of points.

The bounding box is the smallest rectangular volume in the global coordinates, such that no points of the Coords are outside that volume.

Returns#

Coords (2,3)

Coords array with two points: the first point contains the minimal coordinates, the second has the maximal ones.

See Also#

Examples#

>>> X = Coords([[0.,0.,0.],[3.,0.,0.],[0.,3.,0.]])
>>> print(X.bounding_box())
[[0. 0. 0.]
 [3. 3. 0.]]