Learn R Programming

physx (version 1.0)

vectorproduct: 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

See Also

scalarproduct, vectornorm and unitvector