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
Coordsare 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#
center(): return the center of the bounding boxbounding_box_point(): return a corner or middle point of the bounding boxbounding_box_points(): return all corners of the bounding box
Examples#
>>> X = Coords([[0.,0.,0.],[3.,0.,0.],[0.,3.,0.]]) >>> print(X.bounding_box()) [[0. 0. 0.] [3. 3. 0.]]