let BaseNode=require("../Utils/BaseNode").BaseNode,APJS=require("../../../amazingpro");class CGDist extends BaseNode{constructor(){super()}setNext(t,e){this.nexts[t]=e}setInput(t,e){this.inputs[t]=e}getOutput(){var t,e,s=this.valueType;return null==s||(t=this.inputs[0](),e=this.inputs[1](),null==t)||null==e?null:"Vector2f"==s?Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y)):"Vector3f"==s?Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y)+(t.z-e.z)*(t.z-e.z)):null}}exports.CGDist=CGDist;