Geometrically, the dot product (aka scalar product) of two vectors is the magnitude of one times the projection of the other along the first
Let's say we have two vectors, A and B. The values |A| and |B| represent the lengths of vectors A and B, respectively, and Θ is the angle between the two vectors. The dot product of two vectors will be equal to the cosine of the angle between the vectors, times the lengths of each of the vectors.
In short, the dot product of two vectors, also known as their scalar product, is a way of multiplying vectors, arriving at a scalar quantity (in other words having a magnitude but no direction).
If both a and b are unit vectors, their dot product simply gives the cosine of the angle between them.
However, if neither a nor b is a unit vector, then the magnitude of the projection of a in the direction of b, for example, would be a • b(hat) as the unit vector in the direction of b is b / |b|.