vectorproduct {cooltools} | R Documentation |
Vector product
Description
Compute cross product of two 3-element vectors
Usage
vectorproduct(x, y, normalize = FALSE)
Arguments
x , y |
3-element vectors or n-by-3 matrices representing n 3-element vectors |
normalize |
logical flag; if set to TRUE the cross-product(s) is/are automatically normalized |
Value
Returns a 3-element vector or a n-by-3 element matrix with the cross products
Author(s)
Danail Obreschkow
See Also
scalarproduct
, vectornorm
and unitvector
[Package cooltools version 2.4 Index]