-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathGeometry.h
44 lines (35 loc) · 809 Bytes
/
Geometry.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef _GEOMETRY_
#define _GEOMETRY_
class GeometryObject {
public:
virtual ~GeometryObject() {};
};
class Point : public GeometryObject {
public:
Point(int x, int y);
int x, y;
};
typedef Point Size;
class Rect : public GeometryObject {
public:
Rect(int x, int y, int w, int h);
int x, y;
int width, height;
};
class Border : public GeometryObject {
public:
Border(int l, int r, int t, int b);
int left, right, top, bottom;
};
class Rect2D : public GeometryObject {
public:
Rect2D(float x, float y, float w, float h, float a);
float x, y, width, height, angle;
};
class Rect3D : public GeometryObject {
public:
Rect3D(float x, float y, float w, float h, float ax, float ay, float az);
float x, y, width, height, angle;
};
#endif /* _GEOMETRY_ */
/* vim: set sw=2 sts=2 : */