/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import{fromEuler as t}from"../../../../../core/libs/gl-matrix-2/math/quat.js";import{create as s}from"../../../../../core/libs/gl-matrix-2/factories/quatf64.js";import{create as o,clone as r,ONES as i}from"../../../../../core/libs/gl-matrix-2/factories/vec3f64.js";class e{constructor(t){this.mesh=t,this.name="",this.translation=o(),this.rotation=s(),this.scale=r(i),this._nodes=[]}addNode(t){if(this._nodes.includes(t))throw new Error("Node already added");this._nodes.push(t)}forEachNode(t){this._nodes.forEach(t)}set rotationAngles(s){t(this.rotation,s[0],s[1],s[2])}}export{e as Node};
