R/CROSSL.R

Defines functions `CROSSL`

`CROSSL` <-
function(A1, A2)
{

  if(!is.numeric(A1$x)) A1 = tocartL(A1)
  if(!is.numeric(A2$x)) A2 = tocartL(A2)
    
  x = A1$y*A2$z-A1$z*A2$y
  y = A1$z*A2$x-A1$x*A2$z
  z = A1$x*A2$y-A2$x*A1$y
  a = TOSPHERE(x, y, z)
  return(list(x=x, y=y, z=z, az=a$az, dip=a$dip))
}

Try the RFOC package in your browser

Any scripts or data that you put into this service are public.

RFOC documentation built on Sept. 8, 2023, 6:12 p.m.