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

Method fromArray

docs/app/js/sanddance-app.js:75742–75748  ·  view source on GitHub ↗
(array, offset = 0)

Source from the content-addressed store, hash-verified

75740 return this.set(v[0], v[1], v[2], Number.isFinite(order) ? order : this[3]);
75741 }
75742 fromArray(array, offset = 0) {
75743 this[0] = array[0 + offset];
75744 this[1] = array[1 + offset];
75745 this[2] = array[2 + offset];
75746 if (array[3] !== undefined) this[3] = array[3];
75747 return this.check();
75748 }
75749 fromRollPitchYaw(roll, pitch, yaw) {
75750 return this.set(roll, pitch, yaw, RotationOrder.ZYX);
75751 }

Callers

nothing calls this directly

Calls 1

checkMethod · 0.45

Tested by

no test coverage detected