sl.crossvec: Cross Product

View source: R/sl.crossvec.R

sl.crossvecR Documentation

Cross Product

Description

Compute the cross product of two 3-dimensional vectors.

Usage

sl.crossvec(a, b)

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

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

FESOM/spheRlab documentation built on April 6, 2024, 6:52 p.m.