{"name":"gist: 854920","desc":"Convert a value to a number in a given range","actor":"riebschlager","url":"https://gist.github.com/854920","snippet":"function numberInRange(_input:Number,_oldMin:Number,_oldMax:Number,_newMin:Number,_newMax:Number):Number {\n\t\t\treturn  (((_input - _oldMin) * (_newMax - _newMin)) / (_oldMax - _oldMin)) + _newMin;\n\t\t}","actor_gravatar":"e89dcb45151fded5c1a3b749646be5f2","action":"create"}