coords.Coords.center#

Coords.center()#

Return the center of the Coords.

The center of a Coords is the center of its bounding_box(). The return value is a (3,) shaped Coords object.

See also#

Examples#

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