onekiloparsec / SwiftAA

The most comprehensive collection of accurate astronomical algorithms in (C++, Objective-C and) Swift.
http://www.onekiloparsec.dev/
MIT License
171 stars 31 forks source link

clarification - Astronomical space coordinate and time conversion #74

Closed johndpope closed 6 years ago

johndpope commented 6 years ago

I found this repo - https://github.com/DJBen/SpaceTime

It does azimuth and altitude / right ascension and declination - can swiftAA do this out of the box? image

if so - do you have a snippet of code to share?

https://github.com/ThumbWorks/AugmentedSolarSystem/issues/51

onekiloparsec commented 6 years ago

Hi John. Sorry for not following all the details, I am pretty busy these days. But to answer your question, yes, SwiftAA do this out of the box. These are the transformation of EquatorialCoordinates into Horizontal ones. Check the makeHorizontalCoordinates method of the EquatorialCoordinates class.

johndpope commented 6 years ago

thanks Cedric, I'll share a gist when I get to it.