let BaseNode=require("../Utils/BaseNode").BaseNode,GraphUtils=require("../Utils/GraphUtils").GraphUtils,APJS=require("../../../amazingpro");class CGDivide 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,l,p,a=this.valueType;return null===a||(e=this.inputs[0](),s=this.inputs[1](),null===e)||null===s?null:(u=this.outputs[t],"Int"===a||"Double"===a?this.outputs[t]=e/s:"Vector2f"===a?(i=e.x/s.x,r=e.y/s.y,this.outputs[t]=GraphUtils.getUpdatedValue("Vector2f",u,i,r)):"Vector3f"===a?(i=e.x/s.x,r=e.y/s.y,l=e.z/s.z,this.outputs[t]=GraphUtils.getUpdatedValue("Vector3f",u,i,r,l)):"Vector4f"===a?(i=e.x/s.x,r=e.y/s.y,l=e.z/s.z,p=e.w/s.w,this.outputs[t]=GraphUtils.getUpdatedValue("Vector4f",u,i,r,l,p)):"Color"===a&&(i=e.r/s.r,r=e.g/s.g,l=e.b/s.b,p=e.a/s.a,this.outputs[t]=GraphUtils.getUpdatedValue("Color",u,i,r,l,p)),this.outputs[t])}}exports.CGDivide=CGDivide;