pymel.util.cross

static util.cross(u, v)

cross(u, v) –> VectorN

Returns the cross product of u and v, u and v should be 3 dimensional vectors.

>>> u = VectorN(1.0, 0.0, 0.0)
>>> v = VectorN(0.0, 1.0, 0.0)
>>> cross(u, v)
VectorN([0.0, 0.0, 1.0])
>>> cross(u, [0.0, 1.0, 0.0])
VectorN([0.0, 0.0, 1.0])

Related : see VectorN.cross method.

Previous topic

pymel.util.cotan

Next topic

pymel.util.decorated

Core

Core Modules

Other Modules

This Page