Use more compact constants
This commit is contained in:
@@ -46,9 +46,7 @@ ol.Extent.boundingExtent = function(var_args) {
|
||||
* @return {ol.Extent} Empty extent.
|
||||
*/
|
||||
ol.Extent.createEmptyExtent = function() {
|
||||
return new ol.Extent(
|
||||
Number.POSITIVE_INFINITY, Number.POSITIVE_INFINITY,
|
||||
Number.NEGATIVE_INFINITY, Number.NEGATIVE_INFINITY);
|
||||
return new ol.Extent(Infinity, Infinity, -Infinity, -Infinity);
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ ol.math.csch = function(x) {
|
||||
*/
|
||||
ol.math.roundUpToPowerOfTwo = function(x) {
|
||||
goog.asserts.assert(0 < x);
|
||||
return Math.pow(2, Math.ceil(Math.log(x) / Math.log(2)));
|
||||
return Math.pow(2, Math.ceil(Math.log(x) / Math.LN2));
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user