Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 3586)
+++ trunk/MagicSoft/Mars/Changelog	(revision 3587)
@@ -30,4 +30,11 @@
    * mbase/MProgressBar.cc:
      - fixed initial size
+
+   * mastro/MAstro.[h,cc]:
+     - changed the code for the rotation angle back to its original
+       shape. The definition I tried to introduced was already
+       correctly implemented (assuming that sin is the x-component
+       of the vector I had it wrong in my mind twice, using
+       atan2(y,x) everywhere I did recognize it...)
 
 
Index: trunk/MagicSoft/Mars/mastro/MAstro.cc
===================================================================
--- trunk/MagicSoft/Mars/mastro/MAstro.cc	(revision 3586)
+++ trunk/MagicSoft/Mars/mastro/MAstro.cc	(revision 3587)
@@ -359,6 +359,6 @@
     const Double_t denom = TMath::Sqrt(v1*v1 + v2*v2);
 
-    cos =  -cosl*sinp      / denom;
-    sin = (snlt-cslt*cosp) / denom;
+    sin =   cosl*sinp      / denom; // y-component
+    cos = (snlt-cslt*cosp) / denom; // x-component
 }
 
@@ -403,4 +403,4 @@
     const Double_t cosp = TMath::Cos(phi);
 
-    return TMath::ATan2(-cosl*sinp, snlt-cslt*cosp);
-}
+    return TMath::ATan2(cosl*sinp, snlt-cslt*cosp);
+}
