dot(u, v) –> float
Returns the dot product of u and v, u and v should be Vectors of identical size.
>>> u = VectorN(1.0, 0.0, 0.0)
>>> v = VectorN(0.707, 0.0, -0.707)
>>> print round(dot(u, v), 3)
0.707
>>> print round(dot(u, [0.707, 0.0, -0.707]), 3)
0.707
Related : see VectorN.dot method.