from_axes_angles#

classmethod Orientation.from_axes_angles(axes: ndarray | Vector3d | tuple | list, angles: ndarray | tuple | list | float, symmetry: Symmetry | None = None, degrees: bool = False) Orientation[source]#

Create orientations from axis-angle pairs [Rowenhorst et al., 2015].

Parameters:
axes

Axes of rotation.

angles

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

symmetry

Symmetry of orientations. If not given (default), no symmetry is set.

degrees

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

Returns:
O

Orientation(s).

Examples

>>> from orix.quaternion import Orientation, symmetry
>>> O = Orientation.from_axes_angles((0, 0, -1), 90, symmetry.Oh, degrees=True)
>>> O
Orientation (1,) m-3m
[[ 0.7071  0.      0.     -0.7071]]

Examples using Orientation.from_axes_angles#

Misorientation from aligning directions

Misorientation from aligning directions

Orientation from aligning directions

Orientation from aligning directions