Changeset 19293 for trunk/Mars


Ignore:
Timestamp:
10/24/18 20:59:24 (6 years ago)
Author:
tbretz
Message:
kSolarStandardHorizon for convenience (no need to include libnova.h and no need to copy all these variables. A refernce is enough.
File:
1 edited

Legend:

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

    r18926 r19293  
    2626#define OBS(lat,lng)
    2727#endif
     28
     29    const static double kSolarStandardHorizon = LN_SOLAR_STANDART_HORIZON;
    2830
    2931    const static ln_lnlat_posn kORM  OBS(-(17.+53./60+26.525/3600), 28.+45./60+42.462/3600); // 2800m
     
    103105    EquPosn::EquPosn(const RaDecPosn &rd) { ra = rd.ra*15; dec = rd.dec; }
    104106
    105     HrzPosn GetHrzFromEqu(const EquPosn &equ, const LnLatPosn &obs, double jd)
     107    HrzPosn GetHrzFromEqu(const EquPosn &equ, const LnLatPosn &obs, const double &jd)
    106108    {
    107109        HrzPosn hrz;
     
    109111        return hrz;
    110112    }
    111     HrzPosn GetHrzFromEqu(const EquPosn &equ, double jd)
     113    HrzPosn GetHrzFromEqu(const EquPosn &equ, const double &jd)
    112114    {
    113115        return GetHrzFromEqu(equ, kORM, jd);
    114116    }
    115117
    116     EquPosn GetEquFromHrz(const HrzPosn &hrz, const LnLatPosn &obs, double jd)
     118    EquPosn GetEquFromHrz(const HrzPosn &hrz, const LnLatPosn &obs, const double &jd)
    117119    {
    118120        EquPosn equ;
     
    120122        return equ;
    121123    }
    122     EquPosn GetEquFromHrz(const HrzPosn &hrz, double jd)
     124    EquPosn GetEquFromHrz(const HrzPosn &hrz, const double &jd)
    123125    {
    124126        return GetEquFromHrz(hrz, kORM, jd);
    125127    }
    126128
    127     RstTime GetSolarRst(double jd, const LnLatPosn &obs, double hrz=LN_SOLAR_STANDART_HORIZON)
     129    RstTime GetSolarRst(const double &jd, const LnLatPosn &obs, const double &hrz=kSolarStandardHorizon)
    128130    {
    129131        RstTime rst;
     
    131133        return rst;
    132134    }
    133     RstTime GetSolarRst(double jd, double hrz=LN_SOLAR_STANDART_HORIZON)
     135    RstTime GetSolarRst(const double &jd, const double &hrz=kSolarStandardHorizon)
    134136    {
    135137        return GetSolarRst(jd, kORM, hrz);
    136138    }
    137139
    138     RstTime GetLunarRst(double jd, const LnLatPosn &obs=kORM)
     140    RstTime GetLunarRst(const double &jd, const LnLatPosn &obs=kORM)
    139141    {
    140142        RstTime rst;
     
    142144        return rst;
    143145    }
    144     EquPosn GetSolarEquCoords(double jd)
     146    EquPosn GetSolarEquCoords(const double &jd)
    145147    {
    146148        EquPosn equ;
     
    149151    }
    150152
    151     double GetLunarDisk(double jd)
     153    double GetLunarDisk(const double &jd)
    152154    {
    153155        return ln_get_lunar_disk(jd);
    154156    }
    155157
    156     double GetLunarSdiam(double jd)
     158    double GetLunarSdiam(const double &jd)
    157159    {
    158160        return ln_get_lunar_sdiam(jd);
    159161    }
    160162
    161     double GetLunarPhase(double jd)
     163    double GetLunarPhase(const double &jd)
    162164    {
    163165        return ln_get_lunar_phase(jd);
    164166    }
    165167
    166     EquPosn GetLunarEquCoords(double jd, double precision=0)
     168    EquPosn GetLunarEquCoords(const double &jd, double precision=0)
    167169    {
    168170        EquPosn equ;
     
    171173    }
    172174
    173     double GetLunarEarthDist(double jd)
     175    double GetLunarEarthDist(const double &jd)
    174176    {
    175177        return ln_get_lunar_earth_dist(jd);
Note: See TracChangeset for help on using the changeset viewer.