from_axes_angles#
- classmethod Rotation.from_axes_angles(axes: Union[ndarray, Vector3d, tuple, list], angles: Union[ndarray, tuple, list, float], degrees: bool = False) Rotation [source]#
Initialize from axis-angle pair(s).
- Parameters:
- axes
Axes of rotation.
- angles
Angles of rotation in radians (
degrees=False
) or degrees (degrees=True
).- degrees
If
True
, the given angles are assumed to be in degrees. Default isFalse
.
- Returns:
r
Rotation(s).
See also
Examples
>>> from orix.quaternion import Rotation >>> r = Rotation.from_axes_angles((0, 0, -1), 90, degrees=True) >>> r Rotation (1,) [[ 0.7071 0. 0. -0.7071]]