pymel.util.arrays.cross

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.arrays.cotan

Next topic

pymel.util.arrays.degrees

Core

Core Modules

Other Modules

This Page