from_axes_angles#

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

Initialize from axis-angle pair(s).

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:
ori

Orientation(s).

See also

from_neo_euler

Examples

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

Examples using Orientation.from_axes_angles#