warp.dot#
- warp.dot(a: Quaternion[Float], b: Quaternion[Float]) Float
Return the dot product of the four components of
aandb.- Parameters:
a – First quaternion.
b – Second quaternion.
- Returns:
The scalar dot product. For unit quaternions,
abs(dot(a, b))is the cosine of half the angle of the rotation fromatob, and a negative value means that-bis closer toathanbis.