summaryrefslogtreecommitdiff
path: root/src/point.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/point.h')
-rw-r--r--src/point.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/point.h b/src/point.h
index 6b694ef2..ddeffaae 100644
--- a/src/point.h
+++ b/src/point.h
@@ -31,8 +31,14 @@
class Point
{
public:
- Point() { x = 0; y = 0; }
- Point(unsigned short X, unsigned short Y) {x = X; y = Y; }
+ Point():
+ x(0), y(0)
+ {}
+
+ Point(unsigned short X, unsigned short Y):
+ x(X), y(Y)
+ {}
+
unsigned short x; /**< x coordinate */
unsigned short y; /**< y coordinate */
@@ -57,9 +63,9 @@ class Point
};
/**
- * A rectangle in positive space. Usually represents a pixel-based zone on a map.
+ * A rectangle in positive space. Usually represents a pixel-based zone on a
+ * map.
*/
-
class Rectangle
{
public: