Picks the level whose average cell edge is closest to targetEdgePixels on screen.
targetEdgePixels
Comparison happens in log space so the choice is scale-invariant: a level twice too coarse scores the same as one twice too fine.
Picks the level whose average cell edge is closest to
targetEdgePixelson screen.Comparison happens in log space so the choice is scale-invariant: a level twice too coarse scores the same as one twice too fine.