Merge pull request #665 from Phaen/patch-1

Thanks!
master
Ian 2022-03-13 07:11:15 +00:00 committed by GitHub
commit c8e483c969
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -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