map(x, s1, e1, s2, e2);Maps x from an original range to a target range
Arguments
xThe value to maps1The start of the initial rangee1The end of the initial ranges2The start of the target rangee2The end of the target rangeReturns
numberThe mapped value