Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / API_Bilat_Graph2D / INC / model / Point.h
1 #ifndef POINT_H_
2 #define POINT_H_
3 #include "envGraph.h"
4 #include "Definitions.h"
5
6 /*----------------------------------------------------------------------*\
7 |* Declaration *|
8 \*---------------------------------------------------------------------*/
9
10 /*--------------------------------------*\
11 |* Public *|
12 \*-------------------------------------*/
13
14 class CBI_GRAPH Point
15 {
16 public:
17 Point(float x = 0.0, float y = 0.0);
18 ~Point();
19 void set(float x, float y);
20 void setX(float x);
21 void setY(float y);
22
23 inline float getX() const
24 {
25 return x;
26 }
27 inline float getY() const
28 {
29 return y;
30 }
31
32 void zero();
33
34 private:
35 float x;
36 float y;
37 };
38
39 #endif
40
41 /*----------------------------------------------------------------------*\
42 |* End *|
43 \*---------------------------------------------------------------------*/