Changeset 19293
- Timestamp:
- 10/24/18 20:59:24 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mcore/nova.h
r18926 r19293 26 26 #define OBS(lat,lng) 27 27 #endif 28 29 const static double kSolarStandardHorizon = LN_SOLAR_STANDART_HORIZON; 28 30 29 31 const static ln_lnlat_posn kORM OBS(-(17.+53./60+26.525/3600), 28.+45./60+42.462/3600); // 2800m … … 103 105 EquPosn::EquPosn(const RaDecPosn &rd) { ra = rd.ra*15; dec = rd.dec; } 104 106 105 HrzPosn GetHrzFromEqu(const EquPosn &equ, const LnLatPosn &obs, doublejd)107 HrzPosn GetHrzFromEqu(const EquPosn &equ, const LnLatPosn &obs, const double &jd) 106 108 { 107 109 HrzPosn hrz; … … 109 111 return hrz; 110 112 } 111 HrzPosn GetHrzFromEqu(const EquPosn &equ, doublejd)113 HrzPosn GetHrzFromEqu(const EquPosn &equ, const double &jd) 112 114 { 113 115 return GetHrzFromEqu(equ, kORM, jd); 114 116 } 115 117 116 EquPosn GetEquFromHrz(const HrzPosn &hrz, const LnLatPosn &obs, doublejd)118 EquPosn GetEquFromHrz(const HrzPosn &hrz, const LnLatPosn &obs, const double &jd) 117 119 { 118 120 EquPosn equ; … … 120 122 return equ; 121 123 } 122 EquPosn GetEquFromHrz(const HrzPosn &hrz, doublejd)124 EquPosn GetEquFromHrz(const HrzPosn &hrz, const double &jd) 123 125 { 124 126 return GetEquFromHrz(hrz, kORM, jd); 125 127 } 126 128 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) 128 130 { 129 131 RstTime rst; … … 131 133 return rst; 132 134 } 133 RstTime GetSolarRst( double jd, double hrz=LN_SOLAR_STANDART_HORIZON)135 RstTime GetSolarRst(const double &jd, const double &hrz=kSolarStandardHorizon) 134 136 { 135 137 return GetSolarRst(jd, kORM, hrz); 136 138 } 137 139 138 RstTime GetLunarRst( doublejd, const LnLatPosn &obs=kORM)140 RstTime GetLunarRst(const double &jd, const LnLatPosn &obs=kORM) 139 141 { 140 142 RstTime rst; … … 142 144 return rst; 143 145 } 144 EquPosn GetSolarEquCoords( doublejd)146 EquPosn GetSolarEquCoords(const double &jd) 145 147 { 146 148 EquPosn equ; … … 149 151 } 150 152 151 double GetLunarDisk( doublejd)153 double GetLunarDisk(const double &jd) 152 154 { 153 155 return ln_get_lunar_disk(jd); 154 156 } 155 157 156 double GetLunarSdiam( doublejd)158 double GetLunarSdiam(const double &jd) 157 159 { 158 160 return ln_get_lunar_sdiam(jd); 159 161 } 160 162 161 double GetLunarPhase( doublejd)163 double GetLunarPhase(const double &jd) 162 164 { 163 165 return ln_get_lunar_phase(jd); 164 166 } 165 167 166 EquPosn GetLunarEquCoords( doublejd, double precision=0)168 EquPosn GetLunarEquCoords(const double &jd, double precision=0) 167 169 { 168 170 EquPosn equ; … … 171 173 } 172 174 173 double GetLunarEarthDist( doublejd)175 double GetLunarEarthDist(const double &jd) 174 176 { 175 177 return ln_get_lunar_earth_dist(jd);
Note:
See TracChangeset
for help on using the changeset viewer.