Graphmath.Vec3.cross

You're seeing just the function cross, go back to Graphmath.Vec3 module for more information.

Specs

cross(vec3(), vec3()) :: vec3()

cross( a, b) finds the cross productof one vec3 with another vec3.

a is the first vec3.

b is the second vec3.

It returns a float of the value ( a<sub>y</sub>b<sub>z</sub> - a<sub>z</sub>b<sub>y</sub>, a<sub>z</sub>b<sub>x</sub> - a<sub>x</sub>b<sub>z</sub>, a<sub>x</sub>b<sub>y</sub> - a<sub>y</sub>b<sub>x</sub>).

The cross product of two vectors is a vector perpendicular to the two source vectors. Its magnitude will be the area of the parallelogram made by the two souce vectors.