mivion / swisseph

Swiss Ephemeris binding for node.js
GNU General Public License v2.0
205 stars 72 forks source link

I'd need swe_azalt() #56

Closed David-Gil closed 6 years ago

David-Gil commented 6 years ago

Hi!

For what I want to do, I need to calculate the azimuth. AFAICT, that function is not available. Are there any plans to include it? Is there any way I could help?

I could try to make a PR based on the other function bindings. I think I understand most of it.

timotejroiko commented 6 years ago

I have never tested swe_azalt() but it seems to be already present in the package. its defined in swisseph.cc, eclipse.h and eclipse.cc

Do you get any error with it?

David-Gil commented 6 years ago

Oh, my bad, I didn't expect it to be in eclipse.cc but in pos.cc. Next time I have to remember to use grep.

I have used the function and it works perfectly.

Thank you!!