Repository: adobe-webplatform/Snap.svg (language: javascript)

Issue:
Snap.atan2 passes only one number to Math.atan2
I'm a complete Snap newbie, so feel free to bite.  :-)   I think there may be an issue with Snap.atan2 which passes only one value to math.atan2(), when, to my knowledge, it should be taking (y, x) and passing both to math.atan2()

https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js

(Thanks for Snap -- lots of fun!)


Discussion / hints:
Yup, I guess no one actually used it before :stuck_out_tongue: 

Fix patch:
diff --git a/src/svg.js b/src/svg.js
index 7f5aa009..8bb434d8 100644
--- a/src/svg.js
+++ b/src/svg.js
@@ -379,11 +379,12 @@ Snap.atan = function (num) {
  [ method ]
  **
  * Equivalent to `Math.atan2()` only works with degrees, not radians.
- - num (number) value
+ - x (number) value
+ - y (number) value
  = (number) atan2 in degrees
 \*/
-Snap.atan2 = function (num) {
-    return Snap.deg(math.atan2(num));
+Snap.atan2 = function (x, y) {
+    return Snap.deg(math.atan2(x, y));
 };
 /*\
  * Snap.angle


Test patch: