math_cross_product | R Documentation |
Computes the cross (or: vector) product of vectors in 3 dimensions. In case of matrices it takes the first dimension of length 3 and computes the cross product between corresponding columns or rows.
math_cross_product(x, y)
x |
numeric vector or matrix |
y |
numeric vector or matrix |
The cross product of two vectors is the perpendicular vector to the plane spanned by the given vectors x
and y
.
https://en.wikipedia.org/wiki/Cross_product
A scalar or vector of length the number of columns of x and y.
Florian Wagner florian.wagner@wagnius.ch
<math_dot_product>
math_cross_product(c(1,0,0), c(0,1,0))
math_dot_product(c(1,0),c(0,1))
math_dot_product(c(1,0),c(-1,0))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.