PATH:
usr
/
local
/
lib
/
node_modules
/
bower
/
lib
/
node_modules
/
bower-config
/
node_modules
/
mout
/
src
/
math
define(['./lerp', './norm'], function(lerp, norm){ /** * Maps a number from one scale to another. * @example map(3, 0, 4, -1, 1) -> 0.5 */ function map(val, min1, max1, min2, max2){ return lerp( norm(val, min1, max1), min2, max2 ); } return map; });
[-] loop.js
[edit]
[-] norm.js
[edit]
[-] overflow.js
[edit]
[+]
..
[-] clamp.js
[edit]
[-] round.js
[edit]
[-] countSteps.js
[edit]
[-] isNear.js
[edit]
[-] inRange.js
[edit]
[-] lerp.js
[edit]
[-] ceil.js
[edit]
[-] map.js
[edit]
[-] floor.js
[edit]