coords.Coords.principal_sizes#
- Coords.principal_sizes()#
Return the sizes in the principal directions of the
Coords.Returns#
- float array (3,)
Array with the size of the bounding box along the 3 principal axes.
Notes#
This is a convenient shorthand for:
self.to_coordsys(self.principal_coordsys()).sizes()Examples#
>>> print(Coords([[[0.,0.,0.],[3.,0.,0.]]]).rotate_z(30.0).principal_sizes()) [0. 0. 3.]