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