Changeset 8999 for trunk/MagicSoft/Mars/mastro
- Timestamp:
- 07/14/08 20:59:13 (17 years ago)
- Location:
- trunk/MagicSoft/Mars/mastro
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mastro/MAstro.cc
r8954 r8999 213 213 Deg2Dms(deg, sgn, d, m, s); 214 214 215 MString str; 216 str.Print(fmt, sgn, d, m ,s); 217 return str; 215 return MString::Format(fmt, sgn, d, m ,s); 218 216 } 219 217 … … 224 222 Hor2Hms(deg, sgn, h, m, s); 225 223 226 MString str; 227 str.Print(fmt, sgn, h, m ,s); 228 return str; 224 return MString::Format(fmt, sgn, h, m ,s); 229 225 } 230 226 -
trunk/MagicSoft/Mars/mastro/MAstroCatalog.cc
r8907 r8999 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MAstroCatalog.cc,v 1.3 0 2008-06-02 08:46:39tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MAstroCatalog.cc,v 1.31 2008-07-14 19:59:08 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 959 959 const TVector2 deg = va*TMath::RadToDeg(); 960 960 961 MString txt; 962 if (type==1) 963 txt.Print("Ra=%.2fh Dec=%.1fd", fmod(deg.X()/15+48, 24), fmod(90-deg.Y()+270,180)-90); 964 else 965 txt.Print("Zd=%.1fd Az=%.1fd", fmod(deg.Y()+270,180)-90, fmod(deg.X()+720, 360)); 961 const TString txt = type==1 ? 962 MString::Format("Ra=%.2fh Dec=%.1fd", fmod(deg.X()/15+48, 24), fmod(90-deg.Y()+270,180)-90) : 963 MString::Format("Zd=%.1fd Az=%.1fd", fmod(deg.Y()+270,180)-90, fmod(deg.X()+720, 360)); 966 964 967 965 TMarker *tip=new TMarker(v0.X(), v0.Y(), kDot);
Note:
See TracChangeset
for help on using the changeset viewer.