cross: Cross product of vectors.

Description Usage Arguments Value Author(s)

View source: R/cross.R

Description

Computer the Euclidean cross product of two 3-vectors.

Usage

1
cross(a, b, unit = FALSE)

Arguments

a

numeric 3-vector

b

numeric 3-vector

unit

logical; return a unit vector?

Value

3-vector giving the standard vector cross product, or a unit vector in the same direction, if unit is TRUE. The cross product has magnitude |a||b|sin(theta) where theta is the (smaller) angle between the two vectors. The direction is perpendicular to both vectors, with sign chosen by the right hand rule.

Author(s)

John Brzustowski jbrzusto@REMOVE_THIS_PART_fastmail.fm


jbrzusto/sensorgnome-R-package documentation built on May 18, 2019, 9:19 p.m.