Use more compact constants
This commit is contained in:
+1
-3
@@ -46,9 +46,7 @@ ol.Extent.boundingExtent = function(var_args) {
|
|||||||
* @return {ol.Extent} Empty extent.
|
* @return {ol.Extent} Empty extent.
|
||||||
*/
|
*/
|
||||||
ol.Extent.createEmptyExtent = function() {
|
ol.Extent.createEmptyExtent = function() {
|
||||||
return new ol.Extent(
|
return new ol.Extent(Infinity, Infinity, -Infinity, -Infinity);
|
||||||
Number.POSITIVE_INFINITY, Number.POSITIVE_INFINITY,
|
|
||||||
Number.NEGATIVE_INFINITY, Number.NEGATIVE_INFINITY);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -35,7 +35,7 @@ ol.math.csch = function(x) {
|
|||||||
*/
|
*/
|
||||||
ol.math.roundUpToPowerOfTwo = function(x) {
|
ol.math.roundUpToPowerOfTwo = function(x) {
|
||||||
goog.asserts.assert(0 < 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