Cross Product

Revision as of 15:05, 17 May 2024 by Osmo (talk | contribs) (Updated and revisited the page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Calculates the cross product of the two input vectors.

Cross Product
Cross Product.png
TypeScript block
ColliderNone
FolderMath
Ports
Inputs Vector
Vector
Outputs Cross Product

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