VNMediaClientNET

Point.h
1
12 #pragma once
13 #ifndef H_Point
14 #define H_Point
15
16 class Point2 {
17 public:
18 Point2(void) {}
19 Point2(int x, int y)
20 {
21 this->x = x;
22 this->y = y;
23 }
24 //~Point2(void) {}
25 void setLocation(int x, int y)
26 {
27 this->x = x;
28 this->y = y;
29 }
30 void setLocation(const Point2& pt)
31 {
32 this->x = pt.x;
33 this->y = pt.y;
34 }
35
36 Point2& operator += ( const Point2& pt )
37 {
38 x += pt.x;
39 y += pt.y;
40 return *this;
41 }
42
43 public:
44 int x;
45 int y;
46 };
47
48 #endif
Point2
Definition: Point.h:16