MCPcopy Create free account
hub / github.com/microsoft/SandDance / cartesianCross

Function cartesianCross

docs/app/js/sanddance-app.js:132255–132261  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

132253 return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];
132254}
132255function cartesianCross(a, b) {
132256 return [
132257 a[1] * b[2] - a[2] * b[1],
132258 a[2] * b[0] - a[0] * b[2],
132259 a[0] * b[1] - a[1] * b[0]
132260 ];
132261}
132262function cartesianAddInPlace(a, b) {
132263 a[0] += b[0], a[1] += b[1], a[2] += b[2];
132264}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected