let BaseNode=require("../Utils/BaseNode").BaseNode,GraphUtils=require("../Utils/GraphUtils").GraphUtils,APJS=require("../../../amazingpro");class CGSubtract extends BaseNode{constructor(){super()}setNext(t,e){this.nexts[t]=e}setInput(t,e){this.inputs[t]=e}getOutput(t){var e,s,u,i,r,a=this.inputs[0](),p=this.inputs[1]();return void 0!==a&&void 0!==p?(e=this.outputs[t],"Vector2f"===this.valueType?(s=a.x-p.x,u=a.y-p.y,this.outputs[t]=GraphUtils.getUpdatedValue("Vector2f",e,s,u)):"Vector3f"===this.valueType?(s=a.x-p.x,u=a.y-p.y,i=a.z-p.z,this.outputs[t]=GraphUtils.getUpdatedValue("Vector3f",e,s,u,i)):"Vector4f"===this.valueType?(s=a.x-p.x,u=a.y-p.y,i=a.z-p.z,r=a.w-p.w,this.outputs[t]=GraphUtils.getUpdatedValue("Vector4f",e,s,u,i,r)):this.outputs[t]=a-p,this.outputs[t]):null}}exports.CGSubtract=CGSubtract;