vectorproduct: Vector product

View source: R/vectorproduct.R

vectorproductR 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


obreschkow/cooltools documentation built on Nov. 16, 2024, 2:46 a.m.