Handbook
Glossary
cross ( vec1 vec2 -- vec3 )
Vocabulary
math
.
vectors
Inputs
vec1
an
object
vec2
an
object
Outputs
vec3
an
object
Definition
USING:
kernel
;
IN:
math.vectors
:
cross
( vec1 vec2 -- vec3 )
[
[
{
1 2 0
}
vshuffle
]
[
{
2 0 1
}
vshuffle
]
bi*
v*
]
[
[
{
2 0 1
}
vshuffle
]
[
{
1 2 0
}
vshuffle
]
bi*
v*
]
2bi
v-
;
inline