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

=20
=20

=20
=20
=20
=20
=20

Name | Type | Required | Comments |
---|---|---|---|

`vector1` |
vector | yes | Left operand of the cross product. |

`vector2` |
vector | yes | Right operand of the cross product. |

None

vector

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

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)));