coords.Coords.rotate_y#

Coords.rotate_y(angle)#

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

Parameters#

angle: float

The rotation angle in degrees.

Returns#

Coords

The Coords rotated around the Y-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_y(90))
[[ 0.  0.  -1.]]