Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / API_Bilat_Graph2D / INC / model / Point.h
diff --git a/WCudaMSE/API_Bilat_Graph2D/INC/model/Point.h b/WCudaMSE/API_Bilat_Graph2D/INC/model/Point.h
new file mode 100755 (executable)
index 0000000..896761d
--- /dev/null
@@ -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                                             *|
+ \*---------------------------------------------------------------------*/