identity#
- classmethod Rotation.identity(shape: int | tuple = (1,)) Quaternion [source]#
Create identity quaternions.
- Parameters:
- shape
Shape of the quaternion instance.
- Returns:
Q
Identity quaternions.
Examples using Rotation.identity
#
Rotating z-vector to high-symmetry crystal directions
Rotating z-vector to high-symmetry crystal directions