Date: Thu, 18 Aug 2022 21:51:58 +0100 (BST) Message-ID: <541798435.1253.1660855918888@OMGSVR86> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_1252_813692797.1660855918888" ------=_Part_1252_813692797.1660855918888 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html cross

# Description

Returns the right-handed cross product of vector1 and vector2.

The cross product is the vector that is perpendicular to plane containin= g the two input vectors.

The cross product is not commutative, meaning that cross(\$a, \$b) is not = equal to cross(\$b, \$a).

Math

# Command syntax

## Syntax

=20 =20
 cross vector1 vector2

### Arguments

=20 =20 =20 =20 =20
`vector1` vector yes Left operand of the cross product.
`vector2` vector yes Right operand of the cross product.

None

## Return value

vector

Returns a vector which is the right handed cross product of vector1 and = vector2

## Examples

```vector \$a =3D <<1.0, 0.0, 0.0>>;vector \$b =3D <<=
1.0, 1.0, 0.0>>; // show that a x b is not equal to b x a pri=
nt("a x b =3D " + string(cross(\$a, \$b)));print("b x a =3D " + string(cr=
oss(\$b, \$a)));```