libdaque ~master (2018-08-15T06:36:18Z)
Dub
Repo
cross
daque
math
geometry
Mathematical cross product
R
[]
cross
(
R
)
(
R
[]
v
,
R
[]
w
)
out (result) { R[] resultDup = result.dup; assert (approxEqual(dot(resultDup, v), 0.0) && approxEqual(dot(resultDup, w), 0.0), "Cross product was not orthogonal to it's operands"); }
Meta
Source
See Implementation
daque
math
geometry
functions
cross
distance
dot
geometryTest
magnitude
magnitudeSquared
normalize
Mathematical cross product