summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorjules <jules@okfoc.us>2013-12-22 10:24:02 -0500
committerjules <jules@okfoc.us>2013-12-22 10:24:02 -0500
commitbd83ed70eae58e262b1f5a0a861d20e4606dad9b (patch)
treecb74f4bd0c6bf2240e51e3372134771e33a277f7 /js
parent4e0f175c5cb46fbfeaa59127dfa10d19ae25c143 (diff)
max, min
Diffstat (limited to 'js')
-rw-r--r--js/util.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/util.js b/js/util.js
index ee2c110..b05c7d6 100644
--- a/js/util.js
+++ b/js/util.js
@@ -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) }