Declaration: VectorDotProduct (InVec1, InVec2: TDoubleArray; var Product: double): integer;
The function VectorDotProduct calculates the dot product of the two vectors InVec1 and Invec2 and returns the result in the variable parameter Product.

The function returns the following error codes:

 0 .... everything OK
-1 ... InVec1 and InVec2 do not exhibit the same length

Last Update: 2017-Jun-19