]> Dogcows Code - chaz/openbox/blob - otk/point.hh
offsets in planar surfaces
[chaz/openbox] / otk / point.hh
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
2 #ifndef __point_hh
3 #define __point_hh
4
5 namespace otk {
6
7 class Point {
8 int _x, _y;
9 public:
10 Point() : _x(0), _y(0) {}
11 Point(int x, int y) : _x(x), _y(y) {}
12 Point(const Point &p) : _x(p._x), _y(p._y) {}
13
14 inline int x() const { return _x; }
15 inline int y() const { return _y; }
16
17 bool operator==(const Point &o) const { return _x == o._x && _y == o._y; }
18 bool operator!=(const Point &o) const { return _x != o._x || _y != o._y; }
19 };
20
21 }
22
23 #endif // __point_hh
This page took 0.033726 seconds and 4 git commands to generate.