export lerp = |min, max, x| min + (max - min) * x