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

Method constructor

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

Source from the content-addressed store, hash-verified

70958 return ZERO;
70959 }
70960 constructor(x = 0, y = 0, z = 0, w = 0){
70961 super(-0, -0, -0, -0);
70962 if ((0, _common.isArray)(x) && arguments.length === 1) this.copy(x);
70963 else {
70964 if ((0, _common.config).debug) {
70965 (0, _validators.checkNumber)(x);
70966 (0, _validators.checkNumber)(y);
70967 (0, _validators.checkNumber)(z);
70968 (0, _validators.checkNumber)(w);
70969 }
70970 this[0] = x;
70971 this[1] = y;
70972 this[2] = z;
70973 this[3] = w;
70974 }
70975 }
70976 set(x, y, z, w) {
70977 this[0] = x;
70978 this[1] = y;

Callers

nothing calls this directly

Calls 1

copyMethod · 0.95

Tested by

no test coverage detected