Shuffle assertions
This commit is contained in:
@@ -46,7 +46,7 @@ ol.math.cosh = (function() {
|
||||
* @return {number} The smallest power of two greater than or equal to x.
|
||||
*/
|
||||
ol.math.roundUpToPowerOfTwo = function(x) {
|
||||
ol.assert(0 < x, 29); // `x` must be greater than `0`
|
||||
ol.asserts.assert(0 < x, 29); // `x` must be greater than `0`
|
||||
return Math.pow(2, Math.ceil(Math.log(x) / Math.LN2));
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user