diff options
| author | jules <jules@okfoc.us> | 2013-12-22 10:24:02 -0500 |
|---|---|---|
| committer | jules <jules@okfoc.us> | 2013-12-22 10:24:02 -0500 |
| commit | bd83ed70eae58e262b1f5a0a861d20e4606dad9b (patch) | |
| tree | cb74f4bd0c6bf2240e51e3372134771e33a277f7 /js/util.js | |
| parent | 4e0f175c5cb46fbfeaa59127dfa10d19ae25c143 (diff) | |
max, min
Diffstat (limited to 'js/util.js')
| -rw-r--r-- | js/util.js | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -17,6 +17,8 @@ function mix(n,a,b){ return a*(1-n)+b*n } function ceil(n){ return Math.ceil(n) } function floor(n){ return Math.floor(n) } function round(n){ return Math.round(n) } +function max(n){ return Math.max(n) } +function min(n){ return Math.min(n) } function abs(n){ return Math.abs(n) } function sign(n){ return Math.abs(n)/n } function pow(n,b) { return Math.pow(n,b) } |
