Answers for "js map value in range"

3

js map value in range

(val, in_min, in_max, out_min, out_max) => (val - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
Posted by: Guest on November-02-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language