equal
deleted
inserted
replaced
27 |
27 |
28 #define DRAWN_MAP_COLOR_LAND (Qt::yellow) |
28 #define DRAWN_MAP_COLOR_LAND (Qt::yellow) |
29 #define DRAWN_MAP_COLOR_CURSOR_PEN (Qt::green) |
29 #define DRAWN_MAP_COLOR_CURSOR_PEN (Qt::green) |
30 #define DRAWN_MAP_COLOR_CURSOR_ERASER (Qt::red) |
30 #define DRAWN_MAP_COLOR_CURSOR_ERASER (Qt::red) |
31 |
31 |
|
32 #ifndef M_PI |
|
33 #define M_PI 3.14159265358979323846 |
|
34 #endif |
|
35 |
32 template <class T> T sqr(const T & x) |
36 template <class T> T sqr(const T & x) |
33 { |
37 { |
34 return x*x; |
38 return x*x; |
35 } |
39 } |
36 |
40 |