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

Pluto #86

Closed cmaldonado80 closed 4 years ago

cmaldonado80 commented 4 years ago

Pluto: Astronomers took it out from being a planet, but very important for astrology. I haven't found a way in SwiftAA to see in what degree it is located. I use the "apparentEclipticCoordinates" to see in what degree are the planets, but not available for Pluto or Dwarf Planet. Im I looking in the wrong place or its simply not available?

cmaldonado80 commented 4 years ago

Correction im looking for the "ApparentGeocentricLongitude" of pluto

onekiloparsec commented 4 years ago

Hm... your question points to a tricky inconsistency between the various enums. Indeed, one should be able to get ApparentGeocentricLongitude from AA+ too. Investigating...

onekiloparsec commented 4 years ago

I am updating the code to make sure that the Pluto class, because it inherits from the DwarfPlanet class, is able to correctly compute the ApparentGeocentricLongitude as part of the planetary details.

It was somehow the case already, but the truncated enum prevented to achieve the complete the result, since it was routed to "undefined" Planetary Object.

onekiloparsec commented 4 years ago

I don't have tests however that would validate the computation. But what the new code is doing is simply giving access to the existing computations made by AA+.

onekiloparsec commented 4 years ago

SwiftAA 2.2.0 now released.