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

Method constructor

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

Source from the content-addressed store, hash-verified

74676];
74677class Quaternion extends (0, _mathArrayDefault.default) {
74678 constructor(x = 0, y = 0, z = 0, w = 1){
74679 super(-0, -0, -0, -0);
74680 if (Array.isArray(x) && arguments.length === 1) this.copy(x);
74681 else this.set(x, y, z, w);
74682 }
74683 copy(array) {
74684 this[0] = array[0];
74685 this[1] = array[1];

Callers

nothing calls this directly

Calls 2

copyMethod · 0.95
setMethod · 0.95

Tested by

no test coverage detected