In vector mathematics, the dot product (also known as the scalar product) is an operation that takes two vectors and returns a scalar (a single number). The dot product is used to measure the magnitude of projection of one vector onto another and to determine the angle between vectors.