1
0
Fork 0
forked from 0x2620/oxjs
This commit is contained in:
rlx 2011-03-05 02:08:30 +00:00
commit 3605ae1afb
306 changed files with 114880 additions and 84 deletions

View file

@ -59,6 +59,7 @@ Ox.KEYS = {
';': 186, '=': 187, ',': 188, '-': 189, '.': 190, '/': 191, '`': 192,
'(': 219, '\\': 220, ')': 221, '\'': 222
};
Ox.MAP_TILE_SIZE = 256;
Ox.MONTHS = [
'January', 'February', 'March', 'April', 'May', 'June',
'July', 'August', 'September', 'October', 'November', 'December'
@ -2230,14 +2231,14 @@ Ox.limit = function(num, min, max) {
return Math.min(Math.max(num, min), max);
};
Ox.log = function(x, base) {
Ox.log = function(num, base) {
/*
>>> Ox.log(100, 10)
2
>>> Ox.log(Math.E)
1
*/
return Math.log(x) / Math.log(base || Math.E);
return Math.log(num) / Math.log(base || Math.E);
};
Ox.rad = function(deg) {