X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=WCudaMSE%2FAPI_Bilat_Graph2D%2FINC%2Fmodel%2FPoint.h;fp=WCudaMSE%2FAPI_Bilat_Graph2D%2FINC%2Fmodel%2FPoint.h;h=896761da17d1889b1413ebb857421d9e840669c5;hb=8d08c12b29c2a14684f35c023ee39e694bb80d25;hp=0000000000000000000000000000000000000000;hpb=226de81f7e1f1fbf4ac79d0d089e8a05ec7159a0;p=GPU.git diff --git a/WCudaMSE/API_Bilat_Graph2D/INC/model/Point.h b/WCudaMSE/API_Bilat_Graph2D/INC/model/Point.h new file mode 100755 index 0000000..896761d --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D/INC/model/Point.h @@ -0,0 +1,43 @@ +#ifndef POINT_H_ +#define POINT_H_ +#include "envGraph.h" +#include "Definitions.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_GRAPH Point + { + public: + Point(float x = 0.0, float y = 0.0); + ~Point(); + void set(float x, float y); + void setX(float x); + void setY(float y); + + inline float getX() const + { + return x; + } + inline float getY() const + { + return y; + } + + void zero(); + + private: + float x; + float y; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/