Index: trunk/MagicSoft/Mars/mgeom/MGeomPix.cc
===================================================================
--- trunk/MagicSoft/Mars/mgeom/MGeomPix.cc	(revision 8907)
+++ trunk/MagicSoft/Mars/mgeom/MGeomPix.cc	(revision 8908)
@@ -19,5 +19,5 @@
 !   Author(s): Harald Kornmayer 1/2001
 !
-!   Copyright: MAGIC Software Development, 2000-2003
+!   Copyright: MAGIC Software Development, 2000-2008
 !
 !
@@ -139,4 +139,32 @@
 // ------------------------------------------------------------------------
 //
+// Return distance of center to coordinate origin: hypot(fX,fY)
+//
+Float_t MGeomPix::GetDist() const
+{
+    return TMath::Hypot(fX, fY);
+}
+
+// ------------------------------------------------------------------------
+//
+// Return distance of center to center of pix: hypot(fX-pix.fX,fY-pix.fY)
+//
+Float_t MGeomPix::GetDist(const MGeomPix &pix) const
+{
+    return TMath::Hypot(fX-pix.fX, fY-pix.fY);
+}
+
+// ------------------------------------------------------------------------
+//
+// Return angle defined by the center and the center of pix:
+//  atan2(fX-pix.fX,fY-pix.fY)
+//
+Float_t MGeomPix::GetAngle(const MGeomPix &pix) const
+{
+    return TMath::ATan2(fX - pix.GetX(), fY - pix.GetY());
+}
+
+// ------------------------------------------------------------------------
+//
 // compute the distance of a point (px,py) to the Hexagon center in
 // MGeomPix coordinates. Return kTRUE if inside.
