cross#

Rodrigues.cross(other: Vector3d) Vector3d[source]#

Return the cross product of a vector with another vector.

Vectors must have compatible shape for broadcasting to work.

Returns:
vec

The class of other is preserved.

Examples

>>> from orix.vector import Vector3d
>>> v = Vector3d(((1, 0, 0), (-1, 0, 0)))
>>> w = Vector3d((0, 1, 0))
>>> v.cross(w)
Vector3d (2,)
[[ 0  0  1]
 [ 0  0 -1]]