#ifndef ROOT_TPoint
#define ROOT_TPoint
#ifndef ROOT_Rtypes
#include "Rtypes.h"
#endif
class TPoint {
public:
#if !defined(WIN32) && !defined(G__WIN32)
SCoord_t fX;
SCoord_t fY;
#else
long fX;
long fY;
#endif
public:
TPoint() : fX(0), fY(0) { }
TPoint(SCoord_t xy) : fX(xy), fY(xy) { }
TPoint(SCoord_t x, SCoord_t y) : fX(x), fY(y) { }
~TPoint() { }
SCoord_t GetX() const { return (SCoord_t)fX; }
SCoord_t GetY() const { return (SCoord_t)fY; }
void SetX(SCoord_t x) { fX = x; }
void SetY(SCoord_t y) { fY = y; }
TPoint& operator=(const TPoint& p) { fX = p.fX; fY = p.fY; return *this; }
friend bool operator==(const TPoint& p1, const TPoint& p2);
friend bool operator!=(const TPoint& p1, const TPoint& p2);
};
inline bool operator==(const TPoint& p1, const TPoint& p2)
{
return p1.fX == p2.fX && p1.fY == p2.fY;
}
inline bool operator!=(const TPoint& p1, const TPoint& p2)
{
return p1.fX != p2.fX || p1.fY != p2.fY;
}
#endif
Last change: Wed Jun 25 08:50:44 2008
Last generated: 2008-06-25 08:50
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.