coords.Coords.xyz#

property Coords.xyz#

Return the coordinates of the points as a NumPy ndarray.

Returns#

numpy.ndarray

A view on the coordinates of all points as a NumPy ndarray.

Notes#

The returned array is a view on the data, not a copy. Modifying it will change the underlying Coords.

Examples#

>>> X = Coords(np.arange(6).reshape(1, 2, 3))
>>> print(X.xyz)
[[[0. 1. 2.]
  [3. 4. 5.]]]