Changeset 19552 for trunk


Ignore:
Timestamp:
06/05/19 16:21:12 (5 years ago)
Author:
tbretz
Message:
Added functions to get rise/transit/set times of any object
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mcore/nova.h

    r19442 r19552  
    167167    }
    168168
     169    inline RstTime GetObjectRst(const EquPosn &equ, const LnLatPosn &obs, const double &jd, const double &hrz=0)
     170    {
     171        RstTime rst;
     172        // 0 for success, 1 for circumpolar (above the horizon), -1 for circumpolar (bellow the horizon)
     173        ln_get_object_next_rst_horizon(jd, const_cast<LnLatPosn*>(&obs), const_cast<EquPosn*>(&equ), hrz, &rst);
     174        return rst;
     175    }
     176    inline RstTime GetObjectRst(const EquPosn &equ, const double &jd, const double &hrz=0)
     177    {
     178        return GetObjectRst(equ, PRESET_OBSERVATORY, jd, hrz);
     179    }
     180
    169181    inline RstTime GetSolarRst(const double &jd, const LnLatPosn &obs, const double &hrz=kSolarStandardHorizon)
    170182    {
Note: See TracChangeset for help on using the changeset viewer.