Convert to unit scale

toUnitScale(x, min, max)