Changeset 9571 for trunk/MagicSoft/Mars/mgeom
- Timestamp:
- 04/19/10 13:11:19 (15 years ago)
- Location:
- trunk/MagicSoft/Mars/mgeom
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mgeom/MGeom.cc
r9385 r9571 158 158 // ------------------------------------------------------------------------ 159 159 // 160 // Return distance squared of center to center of pix: 161 // (fX-pix.fX)^2+(fY-pix.fY)^2 162 // 163 Float_t MGeom::GetDist2(const MGeom &pix) const 164 { 165 const Double_t dx = fX-pix.fX; 166 const Double_t dy = fY-pix.fY; 167 return dx*dx + dy*dy; 168 } 169 170 // ------------------------------------------------------------------------ 171 // 160 172 // Return angle defined by the center and the center of pix: 161 173 // atan2(fX-pix.fX,fY-pix.fY) -
trunk/MagicSoft/Mars/mgeom/MGeom.h
r9385 r9571 87 87 Float_t GetDist() const; 88 88 Float_t GetDist(const MGeom &pix) const; 89 Float_t GetDist2(const MGeom &pix) const; 89 90 Float_t GetAngle(const MGeom &pix) const; 90 91
Note:
See TracChangeset
for help on using the changeset viewer.