Changeset 15207
- Timestamp:
- 03/31/13 02:33:30 (12 years ago)
- Location:
- trunk/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/libnova/Makefile
r15180 r15207 15 15 CINT = Nova 16 16 17 SRCFILES = nova. cc17 SRCFILES = nova.h 18 18 19 19 ############################################################ -
trunk/Mars/libnova/NovaLinkDef.h
r15195 r15207 29 29 // Nova wrapper 30 30 #pragma link C++ namespace Nova; 31 #pragma link C++ struct Nova::ZdAzPosn; 32 #pragma link C++ struct Nova::HrzPosn; 31 33 32 34 #endif -
trunk/Mars/libnova/nova.cc
r15195 r15207 1 //#include " nova.h"1 //#include "../libnova/nova.h" -
trunk/Mars/mcore/nova.h
r15203 r15207 10 10 { 11 11 typedef ln_lnlat_posn LnLatPosn; 12 typedef ln_hrz_posn HrzPosn;12 //typedef ln_hrz_posn HrzPosn; 13 13 typedef ln_equ_posn EquPosn; 14 14 typedef ln_rst_time RstTime; 15 16 struct ZdAzPosn; 17 18 // Warning: 0deg=South, 90deg=W 19 struct HrzPosn : public ln_hrz_posn 20 { 21 HrzPosn() { } 22 HrzPosn(const ZdAzPosn &); 23 }; 24 25 struct ZdAzPosn 26 { 27 double zd; 28 double az; 29 30 ZdAzPosn() : zd(0), az(0) { } 31 ZdAzPosn(const HrzPosn &hrz) : zd(90-hrz.alt), az(hrz.az-180) { } 32 33 // This crahsed cint, but it could save up the dedicate structure HrzPosn :( 34 //operator HrzPosn() const { const HrzPosn p = { az-180, 90-zd}; return p; } 35 }; 36 37 HrzPosn::HrzPosn(const ZdAzPosn &za) { alt = 90-za.zd; az = za.az-180; } 38 39 15 40 16 41 const LnLatPosn &ORM()
Note:
See TracChangeset
for help on using the changeset viewer.