warp.dot#

warp.dot(a: Vector[Scalar, Any], b: Vector[Scalar, Any]) → Scalar#
  • Kernel: true
  • Python: true
  • Differentiable: true

Compute the dot product.

warp.dot(a: Quaternion[Float], b: Quaternion[Float]) → Float
  • Kernel: true
  • Python: true
  • Differentiable: true

Return the dot product of the four components of a and b.

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 from a to b, and a negative value means that -b is closer to a than b is.