Cross product of two 3D vectors returns another vecter that is perpendicular to both the original vecters.
In this example vector A and B are indicated by blue line and green line, respectively, and their product is shown with red line.
A × B = [(a2 * b3 - a3 * b2) (a3 * b1 - a1 * b3) (a1 * b2 - a2 * b1)]
- for any two vectors A = [a1 a2 a3] and B = [b1 b2 b3].
sample movie and scripts