cross {spheresmooth} | R Documentation |
Compute the cross product of two vectors
Description
This function computes the cross product of two input vectors u and v.
Usage
cross(u, v, normalize = FALSE)
Arguments
u |
Numeric vector. |
v |
Numeric vector. |
normalize |
logical. If TRUE, returns the normalized vector of the cross product result. |
Value
Numeric vector representing the cross product of u and v.
Examples
cross(c(1,0,0), c(0,1,0))
[Package spheresmooth version 0.1.3 Index]