MCPcopy
hub / github.com/microsoft/SandDance / add

Function add

docs/tests/v2/es6/js/sanddance.js:16091–16095  ·  view source on GitHub ↗

* Adds two vec2's * * @param {vec2} out the receiving vector * @param {vec2} a the first operand * @param {vec2} b the second operand * @returns {vec2} out

(out, a, b)

Source from the content-addressed store, hash-verified

16089
16090
16091function add(out, a, b) {
16092 out[0] = a[0] + b[0];
16093 out[1] = a[1] + b[1];
16094 return out;
16095}
16096/**
16097 * Subtracts vector b from vector a
16098 *

Callers 4

sanddance.jsFile · 0.70
_defaultFunction · 0.70
addAllFunction · 0.70
axisSelectionPolygonsFunction · 0.70

Calls 2

addMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected