Returns the scalar product between two vectors.
The return value is the length of the first vector multiply by
the length of the second multiplied by the cosine of the angle between the
two vectors.
In a formula way it looks like that:
return value= scalar_product= |vec1|*|vec2|*cos(alpha) . Alpha is the angle between the vectors
For more information about scalar products see your math book (look for Linear Algebra and vectors)
|