Math module

cross

procedureSource

The same procedure as cross_product.

Example↗
assert(cross(xyz(0, 0, 1), xyz(1, 0, 0)) == xyz(0, 1, 0));
cross :: (a: Vector3, b: Vector3) -> Vector3

The cross product of a and b, perpendicular to both. Also available as cross.

Parameters

a: Vector3
the left vector.
b: Vector3
the right vector.

Returns

See also