To take the dot product of two vectors, multiply the vectors’ like coordinates and then add the products together. In other words, multiply the x coordinates of the two vectors, then add the result to the product of the y coordinates. Given vectors in three-dimensional space, add the product of the z coordinates as well.
Read MoreTo find the angle between two vectors, we use a formula for cosine of the angle in terms of the dot product of the vectors and the magnitude of both vectors. The magnitude of each vector is given by the formula for the distance between points.
Read More