download
raw
1.39 kB
"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const THREE = require("three");
const _translationObject = /* @__PURE__ */ new THREE.Vector3();
const _quaternionObject = /* @__PURE__ */ new THREE.Quaternion();
const _scaleObject = /* @__PURE__ */ new THREE.Vector3();
const _translationWorld = /* @__PURE__ */ new THREE.Vector3();
const _quaternionWorld = /* @__PURE__ */ new THREE.Quaternion();
const _scaleWorld = /* @__PURE__ */ new THREE.Vector3();
class Gyroscope extends THREE.Object3D {
constructor() {
super();
}
updateMatrixWorld(force) {
this.matrixAutoUpdate && this.updateMatrix();
if (this.matrixWorldNeedsUpdate || force) {
if (this.parent !== null) {
this.matrixWorld.multiplyMatrices(this.parent.matrixWorld, this.matrix);
this.matrixWorld.decompose(_translationWorld, _quaternionWorld, _scaleWorld);
this.matrix.decompose(_translationObject, _quaternionObject, _scaleObject);
this.matrixWorld.compose(_translationWorld, _quaternionObject, _scaleWorld);
} else {
this.matrixWorld.copy(this.matrix);
}
this.matrixWorldNeedsUpdate = false;
force = true;
}
for (let i = 0, l = this.children.length; i < l; i++) {
this.children[i].updateMatrixWorld(force);
}
}
}
exports.Gyroscope = Gyroscope;
//# sourceMappingURL=Gyroscope.cjs.map

Xet Storage Details

Size:
1.39 kB
·
Xet hash:
d3f945cc5429abb1705cae36970d8709843a6bb0f95b2379d21e04306d0ef579

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.