Rdocumentation
powered by
Learn R Programming
geometry (version 0.2-0)
extprod3d: Compute external- or `cross'- product of 3D vectors.
Description
Computes the external product $$\left(x_2 y_3 - x_3 y_2,\; x_3 y_1 - x_1 y_3,\; x_1 y_2 - x_2 y_1 \right)$$ of the 3D vectors in
x
and
y
.
Usage
extprod3d(x, y)
Arguments
x
n
-by-3 matrix. Each row is one
x
-vector
y
n
-by-3 matrix. Each row is one
y
-vector
Value
n
-by-3 matrix