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

Method scale

docs/app/js/sanddance-app.js:69331–69335  ·  view source on GitHub ↗
(scale)

Source from the content-addressed store, hash-verified

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];
69334 return this.check();
69335 }
69336 multiplyByScalar(scalar) {
69337 for(let i = 0; i < this.ELEMENTS; ++i)this[i] *= scalar;
69338 return this.check();

Callers

nothing calls this directly

Calls 1

checkMethod · 0.95

Tested by

no test coverage detected