module Escapist::ScaleHelpers

Direct including types

Defined in:

escapist/cursor.cr

Instance Method Summary

Instance Method Detail

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

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


[View source]