let BaseNode=require("../Utils/BaseNode").BaseNode,GraphUtils=require("../Utils/GraphUtils").GraphUtils,APJS=require("../../../amazingpro");class CGWorldToScreen extends BaseNode{constructor(){super(),this.screenHeight=APJS.AmazingManager.getSingleton("BuiltinObject").getInputTextureHeight()}getOutput(t){var e,s;return this.inputs[0]&&this.inputs[1]?(s=this.inputs[1](),e=this.inputs[0](),s&&e?(s=s.worldToViewportPoint(e),this.outputs[t]=GraphUtils.getUpdatedValue("Vector2f",this.outputs[t],s.x,s.y)):this.outputs[t]=GraphUtils.getUpdatedValue("Vector2f",this.outputs[t],0,0)):this.outputs[t]=GraphUtils.getUpdatedValue("Vector2f",this.outputs[t],0,0),this.outputs[t]}}exports.CGWorldToScreen=CGWorldToScreen;