coords.Coords.rotate_x#
- Coords.rotate_x(angle)#
Return a copy rotated over angle around the X-axis.
Parameters#
- angle: float
The rotation angle in degrees.
Returns#
- Coords
The Coords rotated around the X-axis over the specified angle.
Note#
More extensive functionality is provided through the method
rotate().Examples#
>>> X = Coords([[0.0, 1.0, 0.0]]) >>> print(X.rotate_x(90)) [[0. 0. 1.]]