Changeset 3227
- Timestamp:
- 02/18/04 15:45:12 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3226 r3227 4 4 5 5 -*-*- END OF LINE -*-*- 6 7 2004/01/18: Abelardo Moralejo 8 9 * mgui/MHexagon.cc 10 - added comment explaining the algorithm. 11 6 12 7 13 2004/02/18: Hendrik Bartko -
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.