summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2014-11-22 23:19:12 -0500
committerJules Laplace <jules@okfoc.us>2014-11-22 23:19:12 -0500
commit04537ed34d443d0610b77420d1dbef64bc05fbfa (patch)
tree3f837352c1ce0e2665042e1fb4d84521dddfbc3b /js
parente35a55d8dbc8696b0c5ab2f26cc4801957324394 (diff)
fix atan2
Diffstat (limited to 'js')
-rw-r--r--js/util.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/util.js b/js/util.js
index 7bb1c78..1a1a0fe 100644
--- a/js/util.js
+++ b/js/util.js
@@ -30,7 +30,7 @@ function tan(n){ return Math.tan(n) }
function acos(n){ return Math.cos(n) }
function asin(n){ return Math.sin(n) }
function atan(n){ return Math.atan(n) }
-function atan2(n){ return Math.atan2(n) }
+function atan2(a,b){ return Math.atan2(a,b) }
function sec(n){ return 1/cos(n) }
function csc(n){ return 1/sin(n) }
function cot(n){ return 1/tan(n) }