dot#

OrientationRegion.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.

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])