let BaseNode=require("../Utils/BaseNode").BaseNode,GraphUtils=require("../Utils/GraphUtils").GraphUtils,APJS=require("../../../amazingpro");class CGMultiply extends BaseNode{constructor(){super()}setNext(t,e){this.nexts[t]=e}setInput(t,e){this.inputs[t]=e}getOutput(t){var e=this.valueType;if(null==e)return null;var i=this.outputs[t];if("Int"===e||"Double"===e){let e=1;for(let t=0;t<this.inputs.length;++t){var s=this.inputs[t]();if(null==s)return null;e*=s}this.outputs[t]=e}else if("Vector2f"===e){let e=1,s=1;for(let t=0;t<this.inputs.length;++t){var l=this.inputs[t]();if(!l)return null;e*=l.x,s*=l.y}this.outputs[t]=GraphUtils.getUpdatedValue("Vector2f",i,e,s)}else if("Vector3f"===e){let e=1,s=1,l=1;for(let t=0;t<this.inputs.length;++t){var u=this.inputs[t]();if(!u)return null;e*=u.x,s*=u.y,l*=u.z}this.outputs[t]=GraphUtils.getUpdatedValue("Vector3f",i,e,s,l)}else{if("Vector4f"!==e)return null;{let e=1,s=1,l=1,u=1;for(let t=0;t<this.inputs.length;++t){var r=this.inputs[t]();if(!r)return null;e*=r.x,s*=r.y,l*=r.z,u*=r.w}this.outputs[t]=GraphUtils.getUpdatedValue("Vector4f",i,e,s,l,u)}}return this.outputs[t]}}exports.CGMultiply=CGMultiply;