Objective-C Astronomy Library

前端 未结 6 1274
轮回少年
轮回少年 2021-02-08 18:01

I need to do some moonrise azimuth and time calculations. Can anyone recommend a good astronomy library, preferably in Objective-C?

6条回答
  •  我寻月下人不归
    2021-02-08 18:15

    On top of Andrew Hammond answer, I just use Xcode to download the AA. I then remove all the Test files (AATest.cpp AATest.sin AATest.vcproj) and with a warning by Xcode of "Implicit conversion loss integer precision 'long' to 'int'" in the last line on nYear / 100

    CAAEasterDetails CAAEaster::Calculate(long nYear, bool GregorianCalendar)
    {
      CAAEasterDetails details;
    
      if (GregorianCalendar)
      {                      
        int a = nYear % 19;
        int b = nYear / 100;
    

    The program compile ok. Only compile if the program is objective c but not if it is Swift based. Got a problem with pre-processor macro AAPLUS_EXT_CLASS.

提交回复
热议问题