diff options
| author | jules <jules@okfoc.us> | 2014-02-26 16:13:16 -0500 |
|---|---|---|
| committer | jules <jules@okfoc.us> | 2014-02-26 16:13:16 -0500 |
| commit | dcf5ddffe94d7d18a8411c910ab53192841919de (patch) | |
| tree | 5cd00e5779a1644ffb98ac7f52e81cde5aac934f /js | |
| parent | e8fce3352e6fbb0eb6949bf63f1d3a3b6c5eb8f6 (diff) | |
lol max and min were wrong
Diffstat (limited to 'js')
| -rw-r--r-- | js/util.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -21,8 +21,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 max(a,b){ return Math.max(a,b) } +function min(a,b){ return Math.min(a,b) } function abs(n){ return Math.abs(n) } function sign(n){ return Math.abs(n)/n } function pow(n,b) { return Math.pow(n,b) } |
