Changeset 3227


Ignore:
Timestamp:
02/18/04 15:45:12 (21 years ago)
Author:
moralejo
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3226 r3227  
    44
    55                                                 -*-*- END OF LINE -*-*-
     6
     7 2004/01/18: Abelardo Moralejo
     8
     9    * mgui/MHexagon.cc
     10      - added comment explaining the algorithm.
     11
    612
    713 2004/02/18: Hendrik Bartko
  • trunk/MagicSoft/Mars/mgui/MHexagon.cc

    r3220 r3227  
    166166    const Double_t disthex = TMath::Sqrt(dx*dx + dy*dy);
    167167
     168    //
     169    // Now check if point is outside of hexagon; just check x coordinate
     170    // in three coordinate systems: the default one, in which two sides of
     171    // the hexagon are paralel to the y axis (see camera displays) and two
     172    // more, rotated with respect to that one by +- 60 degrees. The values
     173    // 0.5 and 0.866025403784438597 are the sine and cosine of 60 degrees.
     174    //
     175
    168176    if (TMath::Abs(dx) > fD/2.)
    169177      return disthex;
Note: See TracChangeset for help on using the changeset viewer.