forked from 0x2620/oxjs
more map
This commit is contained in:
parent
5d644badd4
commit
3605ae1afb
306 changed files with 114880 additions and 84 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue