angle_with#
- Miller.angle_with(other: Self, use_symmetry: bool = False, degrees: bool = False) ndarray [source]#
Return the angles between these vectors and the other vectors possibly using symmetrically equivalent vectors to find the smallest angle under symmetry.
Vectors must have compatible shapes, and be in the same space (direct or reciprocal) and crystal reference frames.
- Parameters:
- other
Other vectors.
- use_symmetry
Whether to consider equivalent vectors to find the smallest angle under symmetry. Default is
False
.- degrees
If
True
, the given angles are returned in degrees. Default isFalse
.
- Returns:
angles
Angles in radians (
degrees=False
) or degrees (degrees=True
).
Examples using Miller.angle_with
#
Misorientation from aligning directions
Misorientation from aligning directions