Calculates the cross product of two vectors.
// Returns (0, 0, 1) (the z-component of cross product)const c = Chalkboard.vect.cross(Chalkboard.vect.init(1, 0), Chalkboard.vect.init(0, 1)); Copy
// Returns (0, 0, 1) (the z-component of cross product)const c = Chalkboard.vect.cross(Chalkboard.vect.init(1, 0), Chalkboard.vect.init(0, 1));
The first vector
The second vector
Calculates the cross product of two vectors.
Example