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

Method constructor

docs/app/js/sanddance-app.js:70201–70214  ·  view source on GitHub ↗
(x = 0, y = 0, z = 0)

Source from the content-addressed store, hash-verified

70199 return ZERO;
70200 }
70201 constructor(x = 0, y = 0, z = 0){
70202 super(-0, -0, -0);
70203 if (arguments.length === 1 && (0, _common.isArray)(x)) this.copy(x);
70204 else {
70205 if ((0, _common.config).debug) {
70206 (0, _validators.checkNumber)(x);
70207 (0, _validators.checkNumber)(y);
70208 (0, _validators.checkNumber)(z);
70209 }
70210 this[0] = x;
70211 this[1] = y;
70212 this[2] = z;
70213 }
70214 }
70215 set(x, y, z) {
70216 this[0] = x;
70217 this[1] = y;

Callers

nothing calls this directly

Calls 1

copyMethod · 0.95

Tested by

no test coverage detected