sl.crossvec: Cross Product

Description Usage Arguments Value Author(s) Examples

View source: R/sl.crossvec.R

Description

Compute the cross product of two 3-dimensional vectors.

Usage

1

Arguments

a

a vector of length 3 (x,y,z coordinates).

b

a vector of length 3 (x,y,z coordinates).

Value

A vector of length 3 (x,y,z coordinates) providing the cross product of a and b.

Author(s)

Helge Goessling

Examples

1
2
3
sl.crossvec(a=c(1,0,0),b=c(0,1,0))
## Should return:
## [1] 0 0 1

helgegoessling/spheRlab documentation built on Sept. 10, 2018, 12:50 a.m.