protected final int distToScale(double d){
  return (int)Math.ceil(Math.log(d) * invLogExpansion);
}

protected final int distToScale ( double d ) { return ( int ) Math . ceil ( Math . log ( d ) * invLogExpansion ) ; }
convert a distance to an upper scaling bound -
