let BaseNode=require("../Utils/BaseNode").BaseNode,APJS=require("../../../amazingpro");class CGReMap extends BaseNode{constructor(){super()}setNext(t,e){this.nexts[t]=e}setInput(t,e){this.inputs[t]=e}getOutput(t){var e=this.inputs[0](),s=this.inputs[1](),u=this.inputs[2](),n=this.inputs[3](),i=this.inputs[4](),l=this.inputs[5]();if(null==e||null==s||null==u||null==n||null==i||null==l)return null;if(Math.abs(s-u)<1.1920929e-7)return n;{let t=(e-s)/(u-s)*(i-n)+n;return l&&(i<n?t<i?t=i:t>n&&(t=n):t>i?t=i:t<n&&(t=n)),t}}}exports.CGReMap=CGReMap;