pymel.util.dot

dot(u, v)

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)
>>> dot(u, v)
0.70699999999999996
>>> dot(u, [0.707, 0.0, -0.707])
0.70699999999999996

Related : see VectorN.dot method.

Previous topic

pymel.util.dist

Next topic

pymel.util.erf

Core

Core Modules

Other Modules

This Page