dot#
- Quaternion.dot(other: Quaternion) ndarray [source]#
Return the dot products of the quaternions and the other quaternions.
- Parameters:
- other
Other quaternions.
- Returns:
dot_products
Dot products.
See also
Rotation.dot
Orientation.dot
Examples
>>> from orix.quaternion import Quaternion >>> q1 = Quaternion([[1, 0, 0, 0], [0.9239, 0, 0, 0.3827]]) >>> q2 = Quaternion([[0.9239, 0, 0, 0.3827], [0.7071, 0, 0, 0.7071]]) >>> q1.dot(q2) array([0.9239 , 0.92389686])