sl.crossvec | R Documentation |
Compute the cross product of two 3-dimensional vectors.
sl.crossvec(a, b)
a |
a vector of length 3 (x,y,z coordinates). |
b |
a vector of length 3 (x,y,z coordinates). |
A vector of length 3 (x,y,z coordinates) providing the cross product of a
and b
.
Helge Goessling
sl.crossvec(a=c(1,0,0),b=c(0,1,0))
## Should return:
## [1] 0 0 1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.