Use Math.log2

This commit is contained in:
Tim Schaub
2022-07-27 15:11:14 -06:00
parent f32517a77f
commit fab4e83745
4 changed files with 3 additions and 56 deletions
+2 -2
View File
@@ -14,7 +14,7 @@ import {
intersects,
} from '../extent.js';
import {getTransform} from '../proj.js';
import {log2, modulo} from '../math.js';
import {modulo} from '../math.js';
/**
* Single triangle; consists of 3 source points and 3 target points.
@@ -169,7 +169,7 @@ class Triangulation {
? Math.max(
0,
Math.ceil(
log2(
Math.log2(
getArea(targetExtent) /
(opt_destinationResolution *
opt_destinationResolution *