powered by
This function computes the cross product of two input vectors u and v.
cross(u, v, normalize = FALSE)
Numeric vector representing the cross product of u and v.
Numeric vector.
logical. If TRUE, returns the normalized vector of the cross product result.
cross(c(1,0,0), c(0,1,0))
Run the code above in your browser using DataLab