Library globals

Variable globals . view . STEPS

View source

Dynamically calculate limits so that it takes STEPS iterations to
traverse the whole range, the maximum FOV is fixed at 120 degrees,
and the minimum corresponds to normal maximum human visual acuity
(~1 arc minute of resolution, although apparently people vary widely
in this ability).  Quick derivation of the math:

mul^steps = max/min
steps * ln(mul) = ln(max/min)
mul = exp(ln(max/min) / steps)