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

Method subtract

docs/app/js/sanddance-app.js:69327–69330  ·  view source on GitHub ↗
(...vectors)

Source from the content-addressed store, hash-verified

69325 return this.check();
69326 }
69327 subtract(...vectors) {
69328 for (const vector of vectors)for(let i = 0; i < this.ELEMENTS; ++i)this[i] -= vector[i];
69329 return this.check();
69330 }
69331 scale(scale) {
69332 if (typeof scale === "number") for(let i = 0; i < this.ELEMENTS; ++i)this[i] *= scale;
69333 else for(let i1 = 0; i1 < this.ELEMENTS && i1 < scale.length; ++i1)this[i1] *= scale[i1];

Callers 4

subMethod · 0.95
subVectorsMethod · 0.45
getFrustumPlanesFunction · 0.45
sanddance-app.jsFile · 0.45

Calls 1

checkMethod · 0.95

Tested by

no test coverage detected