Computes the vector cross product of the two 3-dimensional vectors x and y.
cross ([1,1,0], [0,1,1]) [ 1; -1; 1 ]If x and y are matrices, the cross product is applied along the first dimension with 3 elements. The optional argument dim is used to force the cross product to be calculated along the dimension defined by dim.