TPoints.h

Go to the documentation of this file.
00001 // @(#)root/graf:$Id: TPoints.h 20882 2007-11-19 11:31:26Z rdm $
00002 // Author: Rene Brun   23/02/95
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 #ifndef ROOT_TPoints
00013 #define ROOT_TPoints
00014 
00015 
00016 //////////////////////////////////////////////////////////////////////////
00017 //                                                                      //
00018 // TPoints                                                              //
00019 //                                                                      //
00020 // 2-D graphics point (world coordinates, i.e. floating point).         //
00021 //                                                                      //
00022 //////////////////////////////////////////////////////////////////////////
00023 
00024 #ifndef ROOT_Rtypes
00025 #include "Rtypes.h"
00026 #endif
00027 
00028 
00029 class TPoints {
00030 
00031 private:
00032    Double_t    fX;           //X world coordinate
00033    Double_t    fY;           //Y world coordinate
00034 
00035 public:
00036    TPoints() : fX(0), fY(0) { }
00037    TPoints(Double_t xy) : fX(xy), fY(xy) { }
00038    TPoints(Double_t x, Double_t y) : fX(x), fY(y) { }
00039    virtual ~TPoints() { }
00040    Double_t   GetX() const { return fX; }
00041    Double_t   GetY() const { return fY; }
00042    void       SetX(Double_t x) { fX = x; }
00043    void       SetY(Double_t y) { fY = y; }
00044 
00045    ClassDef(TPoints,0)  //2-D graphics point
00046 };
00047 
00048 #endif

Generated on Tue Jul 5 14:14:10 2011 for ROOT_528-00b_version by  doxygen 1.5.1