numpy.cross()
numpy.cross
-
numpy.cross(a, b, axisa=-1, axisb=-1, axisc=-1, axis=None)
[source] -
Return the cross product of two (arrays of) vectors.
The cross product of
a
andb
inis a vector perpendicular to both
a
andb
. Ifa
andb
are arrays of vectors, the vectors are defined by the last axis ofa
andb
by default, and these axes can have dimensions 2 or 3. Where the dimension of eithera
orb