Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ map values range

To map
[A, B] --> [a, b]

use this formula
(val - A)*(b-a)/(B-A) + a
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #map #values #range
ADD COMMENT
Topic
Name
1+8 =