Closed jason4short closed 5 years ago
inc = Math.atan(sdist Math.sin(phi), m.dist - sdist Math.cos(phi))
Just curious why this calc is an atan with two arguments when atan only takes 1 argument. The second argument is ignored.
thanks Jason
https://github.com/mourner/suncalc/blob/master/suncalc.js#L16
Ha, when I ported the code, I missed that. A little confusing since the compiler happily takes two values.
inc = Math.atan(sdist Math.sin(phi), m.dist - sdist Math.cos(phi))
Just curious why this calc is an atan with two arguments when atan only takes 1 argument. The second argument is ignored.
thanks Jason