Changeset 3587


Ignore:
Timestamp:
03/23/04 11:17:33 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3586 r3587  
    3030   * mbase/MProgressBar.cc:
    3131     - 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...)
    3239
    3340
  • trunk/MagicSoft/Mars/mastro/MAstro.cc

    r3568 r3587  
    359359    const Double_t denom = TMath::Sqrt(v1*v1 + v2*v2);
    360360
    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
    363363}
    364364
     
    403403    const Double_t cosp = TMath::Cos(phi);
    404404
    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.