Small math helpers for making animations.
Returns the sign of the number
sign 0 == 0
sign 3 == 1
sign -5 == -1Linearly interpolates between the first two numbers.
-- interp start end 0 == start
-- interp start end 1 == end
interp 0 10 0.3 == 3
interp 0 100 -2 == -200
Takes a modulo, but is accepting of floats.