Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 3229)
+++ trunk/MagicSoft/Mars/Changelog	(revision 3230)
@@ -9,5 +9,6 @@
     * mgui/MHexagon.cc
       - added comment explaining the algorithm.
-
+      - changed explicit values of Sin and Cos 60 degrees by const
+	variables (more readable).
 
  2004/02/18: Hendrik Bartko
Index: trunk/MagicSoft/Mars/mgui/MHexagon.cc
===================================================================
--- trunk/MagicSoft/Mars/mgui/MHexagon.cc	(revision 3229)
+++ trunk/MagicSoft/Mars/mgui/MHexagon.cc	(revision 3230)
@@ -170,6 +170,5 @@
     // in three coordinate systems: the default one, in which two sides of
     // the hexagon are paralel to the y axis (see camera displays) and two 
-    // more, rotated with respect to that one by +- 60 degrees. The values
-    // 0.5 and 0.866025403784438597 are the sine and cosine of 60 degrees.
+    // more, rotated with respect to that one by +- 60 degrees.
     //
 
@@ -177,10 +176,13 @@
       return disthex;
 
-    const Double_t dx2 = dx*0.5 + dy*0.866025403784438597;
+    const static Double_t cos60 = TMath::Cos(60/kRad2Deg);
+    const static Double_t sin60 = TMath::Sin(60/kRad2Deg);
+
+    const Double_t dx2 = dx*cos60 + dy*sin60;
 
     if  (TMath::Abs(dx2) > fD/2.)
       return disthex;
 
-    const Double_t dx3 = dx*0.5 - dy*0.866025403784438597;
+    const Double_t dx3 = dx*cos60 - dy*sin60;
 
     if  (TMath::Abs(dx3) > fD/2.)
