diff options
Diffstat (limited to 'src/point.h')
-rw-r--r-- | src/point.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/point.h b/src/point.h index 74b8ab0e..edf208be 100644 --- a/src/point.h +++ b/src/point.h @@ -42,6 +42,16 @@ class Point return std::abs(x - p.x) <= radius && std::abs(y - p.y) <= radius; } + + bool operator== (const Point &other) const + { + return (x == other.x && y == other.y); + } + + bool operator!= (const Point &other) const + { + return (x != other.x || y != other.y); + } }; /** |