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

Method multiplyByScalar

docs/app/js/sanddance-app.js:69336–69339  ·  view source on GitHub ↗
(scalar)

Source from the content-addressed store, hash-verified

69334 return this.check();
69335 }
69336 multiplyByScalar(scalar) {
69337 for(let i = 0; i < this.ELEMENTS; ++i)this[i] *= scalar;
69338 return this.check();
69339 }
69340 check() {
69341 if ((0, _common.config).debug && !this.validate()) throw new Error("math.gl: ".concat(this.constructor.name, " some fields set to invalid numbers'"));
69342 return this;

Callers 1

divideScalarMethod · 0.95

Calls 1

checkMethod · 0.95

Tested by

no test coverage detected