module

Escapist::ScaleHelpers

Instance methods

scale(new_min, new_max, min, max, x)

(b-a)(x - min) f(x) = -------------- + a max - min

Source