Changeset 3227 for trunk/MagicSoft/Mars/mgui/MHexagon.cc
- Timestamp:
- 02/18/04 15:45:12 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mgui/MHexagon.cc
r3220 r3227 166 166 const Double_t disthex = TMath::Sqrt(dx*dx + dy*dy); 167 167 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 168 176 if (TMath::Abs(dx) > fD/2.) 169 177 return disthex;
Note:
See TracChangeset
for help on using the changeset viewer.