<<< Head-to-tail rule     Index     Dot product, cont. >>>

9. Dot product


  • Dot product is defined as the cosine of the angle a between two vectors u and v, multiplied by the lengths of both vectors:

    • u·v = |u||v|cos(a)
      (Geometric definition)

    • u·v = u.x*v.x + u.y*v.y + u.z*v.z
      (Algebraic definition -- used more often)

  • Thus, dot product is a scalar value.

  • The order of operands is not important:

    • u·v = v·u

    dot product
  •  


<<< Head-to-tail rule     Index     Dot product, cont. >>>