cross
From pracma v1.9.9
by HwB
Vector Cross Product
Vector or cross product
 Keywords
 array
Usage
cross(x, y)
Arguments
 x
 numeric vector or matrix
 y
 numeric vector or matrix
Details
Computes the cross (or: vector) product of vectors in 3 dimensions. In case of matrices it takes the first dimension of length 3 and computes the cross product between corresponding columns or rows.
The more general cross product of n1
vectors in ndimensional
space is realized as crossn
.
Value

3dim. vector if
x
and <
are vectors, a matrix of
3dim. vectors if x
and y
are matrices themselves.
See Also
Examples
cross(c(1, 2, 3), c(4, 5, 6)) # 3 6 3
Community examples
Looks like there are no examples yet.