from_axes_angles#

classmethod Rotation.from_axes_angles(axes: ndarray | Vector3d | tuple | list, angles: ndarray | tuple | list | float, degrees: bool = False) Quaternion[source]#

Create unit quaternions from axis-angle pairs \((\hat{\mathbf{n}}, \omega)\) [Rowenhorst et al., 2015].

Parameters:
axes

Axes of rotation \(\hat{\mathbf{n}}\).

angles

Angles of rotation \(\omega\) in radians (degrees=False) or degrees (degrees=True).

degrees

If True, the given angles are assumed to be in degrees. Default is False.

Returns:
Q

Unit quaternions.

Examples

>>> from orix.quaternion import Quaternion
>>> Q = Quaternion.from_axes_angles((0, 0, -1), 90, degrees=True)
>>> Q
Quaternion (1,)
[[ 0.7071  0.      0.     -0.7071]]

Examples using Rotation.from_axes_angles#

Misorientation from aligning directions

Misorientation from aligning directions

Orientation from aligning directions

Orientation from aligning directions

Combining rotations

Combining rotations