Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

PointR.h

Go to the documentation of this file.
00001 #ifndef Impala_Core_Geometry_PointR_h
00002 #define Impala_Core_Geometry_PointR_h
00003 
00004 
00005 namespace Impala
00006 {
00007 namespace Core
00008 {
00009 namespace Geometry
00010 {
00011 
00012 
00015 class PointR {
00016 public:
00017 
00018     double mX;
00019     double mY;
00020 
00021     PointR()
00022     {
00023     }
00024 
00025     PointR(double xCoord, double yCoord) : mX(xCoord), mY(yCoord)
00026     {
00027     }
00028 
00029     bool
00030     operator== (const PointR & rhs) const
00031     {
00032         return mX==rhs.mX && mY==rhs.mY;
00033     }
00034 
00035     PointR
00036     operator+ (const PointR & rhs) const
00037     {
00038         return PointR(mX+rhs.mX, mY+rhs.mY);
00039     }
00040 
00041     PointR& operator *= (double factor)
00042     {
00043         mX *= factor;
00044         mY *= factor;
00045         return *this;
00046     }
00047 
00048 };
00049 
00050 } // namespace Geometry
00051 } // namespace Core
00052 } // namespace Impala
00053 
00054 #endif

Generated on Fri Mar 19 09:31:09 2010 for ImpalaSrc by  doxygen 1.5.1