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

Method check

docs/app/js/sanddance-app.js:69340–69343  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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;
69343 }
69344 validate() {
69345 let valid = this.length === this.ELEMENTS;
69346 for(let i = 0; i < this.ELEMENTS; ++i)valid = valid && Number.isFinite(this[i]);

Callers 15

fromArrayMethod · 0.95
negateMethod · 0.95
lerpMethod · 0.95
minMethod · 0.95
maxMethod · 0.95
clampMethod · 0.95
addMethod · 0.95
subtractMethod · 0.95
scaleMethod · 0.95
multiplyByScalarMethod · 0.95
setScalarMethod · 0.95
addScalarMethod · 0.95

Calls 1

validateMethod · 0.95

Tested by

no test coverage detected