make the quad tree max detail level dynamic

This commit is contained in:
James Seibel
2023-03-25 11:44:47 -05:00
parent a465a8da9d
commit eec8db6223
2 changed files with 10 additions and 1 deletions
@@ -45,4 +45,11 @@ public class MathUtil
public static long pow2(long x) { return x * x; }
/** Equivalent to Log_2(numb) */
public static int log2(int numb)
{
// properties of logs allow us to use the base Log_e() method
return (int)(Math.log(numb) / Math.log(2));
}
}