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,) shapedCoordsobject.See also#
bounding_box(): return the bounding box of the Coordscentroid(): return the average coordinates of the points
Examples#
>>> X = Coords([[0.,0.,0.],[3.,0.,0.],[0.,3.,0.]]) >>> print(X.center()) [1.5 1.5 0. ]