commit
c8e483c969
|
@ -379,11 +379,12 @@ Snap.atan = function (num) {
|
||||||
[ method ]
|
[ method ]
|
||||||
**
|
**
|
||||||
* Equivalent to `Math.atan2()` only works with degrees, not radians.
|
* Equivalent to `Math.atan2()` only works with degrees, not radians.
|
||||||
- num (number) value
|
- x (number) value
|
||||||
|
- y (number) value
|
||||||
= (number) atan2 in degrees
|
= (number) atan2 in degrees
|
||||||
\*/
|
\*/
|
||||||
Snap.atan2 = function (num) {
|
Snap.atan2 = function (x, y) {
|
||||||
return Snap.deg(math.atan2(num));
|
return Snap.deg(math.atan2(x, y));
|
||||||
};
|
};
|
||||||
/*\
|
/*\
|
||||||
* Snap.angle
|
* Snap.angle
|
||||||
|
|
Loading…
Reference in New Issue