import{F as c}from"./KHR_interactivity-BtMudStn.js";import{R as e,e as r}from"./declarationMapper-Lanf6XPr.js";import{c as i,V as d,R as h}from"./index-CDrXokXW.js";import"./index-DWyDLubb.js";import"./objectModelMapping-CGWnurZP.js";class y extends c{constructor(t){super(t),this.sourceSystem=this.registerDataInput("sourceSystem",e),this.destinationSystem=this.registerDataInput("destinationSystem",e),this.inputCoordinates=this.registerDataInput("inputCoordinates",r),this.outputCoordinates=this.registerDataOutput("outputCoordinates",r)}_updateOutputs(t){const a=this.sourceSystem.getValue(t),n=this.destinationSystem.getValue(t),u=this.inputCoordinates.getValue(t),p=a.getWorldMatrix(),m=n.getWorldMatrix(),s=i.Matrix[0].copyFrom(m);s.invert();const o=i.Matrix[1];s.multiplyToRef(p,o);const l=this.outputCoordinates.getValue(t);d.TransformCoordinatesToRef(u,o,l)}getClassName(){return"FlowGraphTransformCoordinatesSystemBlock"}}h("FlowGraphTransformCoordinatesSystemBlock",y);export{y as FlowGraphTransformCoordinatesSystemBlock};
