angle_with_outer#
- OrientationRegion.angle_with_outer(other: Rotation, degrees: bool = False) ndarray [source]#
Return the angles of rotation transforming the rotations to all the other rotations.
- Parameters:
- other
Another rotation.
- degrees
If
True
, the angles are returned in degrees. Default isFalse
.
- Returns:
angles
Angles of rotation in radians (
degrees=False
) or degrees (degrees=True
).
See also
Examples
>>> from orix.quaternion import Rotation >>> R1 = Rotation.random((5, 3)) >>> R2 = Rotation.random((6, 2)) >>> omega = R1.angle_with_outer(R2) >>> omega.shape (5, 3, 6, 2)