Changeset 16973 for trunk/Mars/mcore/nova.h
- Timestamp:
- 07/21/13 17:41:10 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mcore/nova.h
r16971 r16973 31 31 double az; // [deg] 32 32 33 ZdAzPosn( ) : zd(0), az(0) { }33 ZdAzPosn(double z=0, double a=0) : zd(z), az(a) { } 34 34 ZdAzPosn(const HrzPosn &hrz) : zd(90-hrz.alt), az(hrz.az-180) { } 35 35 … … 53 53 double dec; // [deg] 54 54 55 RaDecPosn( ) : ra(0), dec(0) { }55 RaDecPosn(double r=0, double dec=0) : ra(r), dec(d) { } 56 56 RaDecPosn(const EquPosn &equ) : ra(equ.ra/15), dec(equ.dec) { } 57 57 … … 150 150 return ln_get_angular_separation(const_cast<EquPosn*>(&p1), const_cast<EquPosn*>(&p2)); 151 151 } 152 153 double GetAngularSeparation(const HrzPosn &h1, const HrzPosn &h2) 154 { 155 EquPosn p1; p1.ra=h1.az; p1.dec=h1.alt; 156 EquPosn p2; p2.ra=h2.az; p2.dec=h2.alt; 157 return ln_get_angular_separation(&p1, &p2); 158 } 152 159 } 153 160
Note:
See TracChangeset
for help on using the changeset viewer.