cross#

static vectorious.cross(x, y)#

Computes the cross product of the x and the vector y This operation can only calculated for vectors with three components. Otherwise it throws an exception.

Arguments:
Returns:

NDArray

Examples:

import { cross } from 'vectorious/core/cross';

cross([1, 2, 3], [4, 5, 6]); // => array([-3, 6, -3])