The dot product (or inner) product produces a scalar; the cross (or vector) product operates only on 3D vectors and produces another vector.
The inner and vector products are used to solve a number of important geometric problems in graphics.
The dot symbol '•' is used to represent a dot product; while the symbol "x" is used to represent a vector one.
To calculate the dot product, we multiply corresponding components of the two vectors and add the results.
For example, the dot product of (3, 4) and (1, 6) is 27, and that of (2, 3, 1) and (0, 4,-1) is 11.
If a=(a1,a2,a2) and b=(b1,b2,b3) are two vectors, then the dot product:

An equivalent definition of the dot product is:

Where theta is the angle between the two vectors (see the figure below) and |c| denotes the magnitude of the vector c.
An important use of the dot product is to test whether or not two vectors are orthogonal.
Two vectors are orthogonal if the angle between them is 90 degrees (i.e. the dot product of two orthogonal vectors is zero).
For example, the two vectors (1,-1,3) and (3,3,0) are orthogonal because the dot product is 1(3)+(-1)(3)+3(0)=0.
One important use of dot products is in projections.