class TPoint


TPoint

TPoint implements a 2D screen (device) point (see also TPoints).

Don't add in dictionary since that will add a virtual table pointer
and that will destroy the data layout of an array of TPoint's which
should match the layout of an array of XPoint's (so no extra copying
needs to be done in the X11 drawing routines).


Function Members (Methods)

public:
TPoint()
TPoint(SCoord_t xy)
TPoint(const TPoint&)
TPoint(SCoord_t x, SCoord_t y)
~TPoint()
SCoord_tGetX() const
SCoord_tGetY() const
TPoint&operator=(const TPoint& p)
voidSetX(SCoord_t x)
voidSetY(SCoord_t y)

Data Members

public:
SCoord_tfXX device coordinate
SCoord_tfYY device coordinate

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TPoint()
{ }
TPoint(SCoord_t xy)
{ }
TPoint(SCoord_t x, SCoord_t y)
{ }
~TPoint()
{ }
SCoord_t GetX()
{ return (SCoord_t)fX; }
SCoord_t GetY()
{ 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; }

Last change: Wed Jun 25 08:50:44 2008
Last generated: 2008-06-25 08:50
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *

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.