diff options
| author | jules <jules@okfoc.us> | 2014-02-17 17:20:57 -0500 |
|---|---|---|
| committer | jules <jules@okfoc.us> | 2014-02-17 17:20:57 -0500 |
| commit | f2e65b33288a249e2c2a8a9677701b634d15f1bc (patch) | |
| tree | 5818b66dd03e99120575ac1fd2654c0f3b1a8e2a | |
| parent | 1c2f0d2080dee56a5117899c8ca0885ba20adac0 (diff) | |
TWO_PI
| -rw-r--r-- | js/util.js | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -12,6 +12,7 @@ function trim(s){ return s.replace(/^\s+/,"").replace(/\s+$/,"") } var E = Math.E var PI = Math.PI var PHI = (1+Math.sqrt(5))/2 +var TWO_PI = PI*2 function clamp(n,a,b){ return n<a?a:n<b?n:b } function lerp(n,a,b){ return (b-a)*n+a } function mix(n,a,b){ return a*(1-n)+b*n } |
