Skip to content

Commit

Permalink
include MathTool
Browse files Browse the repository at this point in the history
  • Loading branch information
monkstone committed Aug 21, 2015
1 parent 66600a0 commit 7cdd928
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ruby-processing/helper_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def thread(&block)
# @return [float] mapped value
def map(value, start1, stop1, start2, stop2)
start2 + (stop2 - start2) * ((value - start1).to_f / (stop1 - start1))
warn('map is deprecated use p5map or map1d instead')
end
# deprecate :map, :p5map, 2015, 12

Expand Down

0 comments on commit 7cdd928

Please sign in to comment.