angle_with_outer#
- Rotation.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:
anglesAngles 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)) >>> dist = r1.angle_with_outer(r2) >>> dist.shape (5, 3, 6, 2)