coords.Coords.rotate_z#

Coords.rotate_z(angle)#

Return a copy rotated over angle around the Z-axis.

Parameters#

angle: float

The rotation angle in degrees.

Returns#

Coords

The Coords rotated around the Z-axis over the specified angle.

Note#

More extensive functionality is provided through the method rotate().

Examples#

>>> X = Coords([[1.0, 0.0, 0.0]])
>>> print(X.rotate_z(90))
[[0. 1. 0.]]