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

Method fromObject

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

Source from the content-addressed store, hash-verified

70988 return this.check();
70989 }
70990 fromObject(object) {
70991 if ((0, _common.config).debug) {
70992 (0, _validators.checkNumber)(object.x);
70993 (0, _validators.checkNumber)(object.y);
70994 (0, _validators.checkNumber)(object.z);
70995 (0, _validators.checkNumber)(object.w);
70996 }
70997 this[0] = object.x;
70998 this[1] = object.y;
70999 this[2] = object.z;
71000 this[3] = object.w;
71001 return this;
71002 }
71003 toObject(object) {
71004 object.x = this[0];
71005 object.y = this[1];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected