ThumbWorks / AugmentedSolarSystem

An Augmented reality experience to explore planets in our Solar System
71 stars 25 forks source link

enhancement - determine azimuth and altitude / right ascension and declination #51

Open johndpope opened 6 years ago

johndpope commented 6 years ago

Astronomy coordinate conversion. Conversion among equatorial coordinate (right ascension and declination), horizontal coordinate (azimuth and altitude) and their corresponding Cartesian equivalents Calculate Julian Date and Local sidereal time. Matrix / Quaternion transformation from celestial coordinate system to local tangent plane. Supports North-East-Down coordinate from earth-centered, earth-fixed coordinate system for any given longitude, latitude and timestamp.

@DJBen - has created this project - which successfully does all this. I wonder if swiftAA can't do this out of the box? https://github.com/DJBen/SpaceTime

screenshot

onekiloparsec commented 6 years ago

Hi. I replied in the SwiftAA associated issue, but SwiftAA does this out of the box (and much more).

As for the RA/Dec conversion into Alt/Az check the makeHorizontalCoordinates method of the EquatorialCoordinates class.