(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;ijoints.Wrist,getThumbMetacarpal:()=>joints.T_Metacarpal,getThumbProximal:()=>joints.T_Proximal,getThumbDistal:()=>joints.T_Distal,getThumbTip:()=>joints.T_Tip,getIndexMetacarpal:()=>joints.I_Metacarpal,getIndexProximal:()=>joints.I_Proximal,getIndexIntermediate:()=>joints.I_Intermediate,getIndexDistal:()=>joints.I_Distal,getIndexTip:()=>joints.I_Tip,getMiddleMetacarpal:()=>joints.M_Metacarpal,getMiddleProximal:()=>joints.M_Proximal,getMiddleIntermediate:()=>joints.M_Intermediate,getMiddleDistal:()=>joints.M_Distal,getMiddleTip:()=>joints.M_Tip,getRingMetacarpal:()=>joints.R_Metacarpal,getRingProximal:()=>joints.R_Proximal,getRingIntermediate:()=>joints.R_Intermediate,getRingDistal:()=>joints.R_Distal,getRingTip:()=>joints.R_Tip,getLittleMetacarpal:()=>joints.L_Metacarpal,getLittleProximal:()=>joints.L_Proximal,getLittleIntermediate:()=>joints.L_Intermediate,getLittleDistal:()=>joints.L_Distal,getLittleTip:()=>joints.L_Tip};this.updateData=((controller,frame,referenceSpace)=>{frame.fillJointRadii(controller.hand.values(),radii);validPoses=frame.fillPoses(controller.hand.values(),referenceSpace,transforms);if(!validPoses)return});const normalQuaternion=(new THREE.Quaternion).setFromEuler(new THREE.Euler(Math.PI/2,0,0));this.getOrientedQuaternion=((id,_quaternion)=>{return this.getQuaternion(id,_quaternion)});this.getDirection=((id,_vector)=>{const mtxOffset=id*16;const vector=_vector?_vector:tmpVector.clone();return vector.fromArray(transforms,mtxOffset+8).normalize().negate()});this.getNormal=((id,_vector)=>{let vector=_vector?_vector:tmpVector.clone();this.getQuaternion(id,tmpQuaternion).multiply(normalQuaternion);tmpDummy.quaternion.copy(tmpQuaternion);tmpDummy.getWorldDirection(vector);return vector});this.getQuaternion=((id,_quaternion)=>{const mtxOffset=id*16;let quaternion=_quaternion?_quaternion:tmpQuaternion.clone();var idx=0;for(var i=mtxOffset;i<=mtxOffset+12;i++){rotMtx.elements[idx++]=transforms[i]}quaternion.setFromRotationMatrix(rotMtx);return quaternion});this.getPosition=((id,_vector)=>{const mtxOffset=id*16;let vector=_vector?_vector:tmpVector.clone();return vector.fromArray(transforms,mtxOffset+12)});this.getRadius=(id=>{return radii[id]});this.getValidity=(()=>validPoses)}},{"./JointObject":1}]},{},[2]);