Learn R Programming

cooltools (version 2.4)

vectorproduct: Vector product

Description

Compute cross product of two 3-element vectors

Usage

vectorproduct(x, y, normalize = FALSE)

Value

Returns a 3-element vector or a n-by-3 element matrix with the cross products

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

Author

Danail Obreschkow

See Also

scalarproduct, vectornorm and unitvector