MCPcopy Create free account
hub / github.com/microsoft/SandDance / setComponent

Method setComponent

docs/app/js/sanddance-app.js:69210–69214  ·  view source on GitHub ↗
(i, value)

Source from the content-addressed store, hash-verified

69208 return (0, _validators.checkNumber)(this[i]);
69209 }
69210 setComponent(i, value) {
69211 (0, _assertDefault.default)(i >= 0 && i < this.ELEMENTS, "index is out of range");
69212 this[i] = value;
69213 return this.check();
69214 }
69215 addVectors(a, b) {
69216 return this.copy(a).add(b);
69217 }

Callers

nothing calls this directly

Calls 1

checkMethod · 0.45

Tested by

no test coverage detected