Ignore:
Timestamp:
02/18/04 15:45:12 (21 years ago)
Author:
moralejo
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.