Cross Product
Cross Product
Type | Script block |
Collider | None |
Folder | Math |
Ports | |
---|---|
Inputs | Vector Vector |
Outputs | Cross Product |
Calculates the cross product of the two input vectors.
Details
The Cross Product is a way of multiplying two vectors together. We can calculate the Cross Product of two vectors this way, let's say that the cross product of A and B is vector C:
Cx = Ay × Bx - Az × By
Cy = Az × Bx - Ax × Bz
Cz = Ax × By - Ay × Bx
It outputs the vector that is perpendicular to both input vectors (or the plane spanned by those vectors).

The length of the output vector is equal to the area of the parallelogram formed by the input vectors (each vector gives a pair of parallel sides).