Vector.cross_vectors

static Vector.cross_vectors(left, right)[source]

Compute the cross product of two lists of vectors.

Parameters:
leftlist[[float, float, float] | compas.geometry.Vector]

A list of vectors.

rightlist[[float, float, float] | compas.geometry.Vector]

A list of vectors.

Returns:
list[compas.geometry.Vector]

A list of cross products.

Examples

>>> result = Vector.cross_vectors([[1.0, 0.0, 0.0], [2.0, 0.0, 0.0]], [[0.0, 1.0, 0.0], [0.0, 0.0, 2.0]])
>>> print(result)
[Vector(x=0.000, y=0.000, z=1.000), Vector(x=0.000, y=-4.000, z=0.000)]