Changeset 15196 for trunk/Mars/libnova
- Timestamp:
- 03/30/13 15:59:29 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/libnova/nova.h
r15195 r15196 14 14 typedef ln_rst_time RstTime; 15 15 16 const LnLatPosn &ORM() 17 { 18 const static LnLatPosn obs = { -(17.+53./60+26.525/3600), 28.+45./60+42.462/3600 }; 19 return obs; 20 } 21 16 22 HrzPosn GetHrzFromEqu(const EquPosn &obj, const LnLatPosn &obs, double jd) 17 23 { … … 19 25 ln_get_hrz_from_equ(const_cast<EquPosn*>(&obj), const_cast<LnLatPosn*>(&obs), jd, &hrz); 20 26 return hrz; 27 } 28 HrzPosn GetHrzFromEqu(const EquPosn &obj, double jd) 29 { 30 return GetHrzFromEqu(obj, ORM(), jd); 21 31 } 22 32 … … 27 37 return rst; 28 38 } 39 RstTime GetSolarRst(double jd, double hrz=LN_SOLAR_STANDART_HORIZON) 40 { 41 return GetSolarRst(jd, ORM(), hrz); 42 } 29 43 30 RstTime GetLunarRst(double jd, const LnLatPosn &obs )44 RstTime GetLunarRst(double jd, const LnLatPosn &obs=ORM()) 31 45 { 32 46 RstTime rst;
Note:
See TracChangeset
for help on using the changeset viewer.