Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:12:20

0001 // @(#)root/graf:$Id$
0002 // Author: Rene Brun   23/02/95
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TPoints
0013 #define ROOT_TPoints
0014 
0015 
0016 #include "Rtypes.h"
0017 
0018 
0019 class TPoints {
0020 
0021 private:
0022    Double_t    fX;           ///< X world coordinate
0023    Double_t    fY;           ///< Y world coordinate
0024 
0025 public:
0026    TPoints() : fX(0), fY(0) { }
0027    TPoints(Double_t xy) : fX(xy), fY(xy) { }
0028    TPoints(Double_t x, Double_t y) : fX(x), fY(y) { }
0029    virtual ~TPoints() { }
0030    Double_t   GetX() const { return fX; }
0031    Double_t   GetY() const { return fY; }
0032    void       SetX(Double_t x) { fX = x; }
0033    void       SetY(Double_t y) { fY = y; }
0034 
0035    ClassDef(TPoints,0)  //2-D graphics point
0036 };
0037 
0038 #endif