Learn R Programming

geophys (version 1.2-1)

AXB.prod: Vector Cross Product

Description

Vector Cross Product

Usage

AXB.prod(A, B)

Arguments

A
vector, 2 or 3 elements
B
vector, 2 or 3 elements

Value

  • vector

Details

Can be 2D or 3D vectors. If lists are input they are converted to vectors.

Examples

Run this code
AXB.prod(c(1,0,0), c(0,1,0)) ###  =  c(0, 0 , 1)
  AXB.prod(c(0,1,0), c(1,0,0)) ###  =  c(0, 0 ,-1)

Run the code above in your browser using DataLab