Changeset 9324 for trunk/MagicSoft


Ignore:
Timestamp:
02/11/09 19:13:31 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r9322 r9324  
    176176     msimreflector/MMirrorDisk.cc:
    177177     - changed the grey colors
     178
     179   * msimreflector/MMirrorHex.cc:
     180     - fixed bugs in CanHit and HasHit
    178181
    179182
  • trunk/MagicSoft/Mars/msimreflector/MMirrorHex.cc

    r9322 r9324  
    6969    // without time consuming calculations.
    7070
    71     return TMath::Hypot(p.X()-X(), p.Y()-X())<1.05*fMaxR;
     71    return TMath::Hypot(p.X()-X(), p.Y()-Y())<1.05*fMaxR;
    7272}
    7373
     
    9898    // more, rotated with respect to that one by +- 60 degrees.
    9999    //
    100     if (TMath::Abs(X())>fD/*/2*/)
     100    if (TMath::Abs(p.X())>fD)
    101101        return kFALSE;
    102102
     
    104104    const Double_t dys = p.Y()*fgSin60;
    105105
    106     if  (TMath::Abs(dxc+dys)>fD/*/2*/)
     106    if (TMath::Abs(dxc+dys)>fD)
    107107        return kFALSE;
    108108
    109     if (TMath::Abs(dxc-dys)>fD/*/2*/)
     109    if (TMath::Abs(dxc-dys)>fD)
    110110        return kFALSE;
    111111
Note: See TracChangeset for help on using the changeset viewer.