Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

algorithm map values

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

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