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

Method fromObject

docs/app/js/sanddance-app.js:70227–70237  ·  view source on GitHub ↗
(object)

Source from the content-addressed store, hash-verified

70225 return this.check();
70226 }
70227 fromObject(object) {
70228 if ((0, _common.config).debug) {
70229 (0, _validators.checkNumber)(object.x);
70230 (0, _validators.checkNumber)(object.y);
70231 (0, _validators.checkNumber)(object.z);
70232 }
70233 this[0] = object.x;
70234 this[1] = object.y;
70235 this[2] = object.z;
70236 return this.check();
70237 }
70238 toObject(object) {
70239 object.x = this[0];
70240 object.y = this[1];

Callers

nothing calls this directly

Calls 1

checkMethod · 0.45

Tested by

no test coverage detected