xprod: Cross-product of two 3d vectors

View source: R/xprod.R

xprodR Documentation

Cross-product of two 3d vectors

Description

This function calculates the cross-product of two 3d (3 element) vectors. Note that this is different from 'base::crossprod()'.

Usage

xprod(a, b)

Arguments

a

numeric vector of length 3

b

numeric vector of length 3

Value

numeric vector of length 3

Examples

xprod(c(0, 1, 2), c(1, 1, 1))


Middleton-Lab/MuscleTernary documentation built on April 26, 2024, 11:29 a.m.