Changeset 3587
- Timestamp:
- 03/23/04 11:17:33 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3586 r3587 30 30 * mbase/MProgressBar.cc: 31 31 - fixed initial size 32 33 * mastro/MAstro.[h,cc]: 34 - changed the code for the rotation angle back to its original 35 shape. The definition I tried to introduced was already 36 correctly implemented (assuming that sin is the x-component 37 of the vector I had it wrong in my mind twice, using 38 atan2(y,x) everywhere I did recognize it...) 32 39 33 40 -
trunk/MagicSoft/Mars/mastro/MAstro.cc
r3568 r3587 359 359 const Double_t denom = TMath::Sqrt(v1*v1 + v2*v2); 360 360 361 cos = -cosl*sinp / denom;362 sin = (snlt-cslt*cosp) / denom;361 sin = cosl*sinp / denom; // y-component 362 cos = (snlt-cslt*cosp) / denom; // x-component 363 363 } 364 364 … … 403 403 const Double_t cosp = TMath::Cos(phi); 404 404 405 return TMath::ATan2( -cosl*sinp, snlt-cslt*cosp);406 } 405 return TMath::ATan2(cosl*sinp, snlt-cslt*cosp); 406 }
Note:
See TracChangeset
for help on using the changeset viewer.