Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- map = (iv, imin, imax, min, max) ->
- r = iv / (imax - imin) * (max - min) + min
- return if r == undefined then 0 else r
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement