Dot Products

The vector dot product takes in two vectors and returns a number telling us how much the vectors are pointing in the same direction:

Additionally, the dot product of two vectors is very easy to calculate. We just take corresponding components of our vectors and multiply them together. Multiply the x coordinates together, multiply the y coordinates together (and if there are any, multiply the z coordinates together) and then add up the results. So, for instance, to calculate .

This makes the dot product a very valuable tool for:

Using the interactive

A = (, )
B = (, )
AB =
Length of B (while dragging):
Show points p where p⋅B = (dotted line)
Show many such lines
Show values of p⋅B for p on the unit circle
Show projection of A onto B.
Label vectors
Draw grid