summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2010-01-22 00:16:27 +0800
committerSam Spilsbury <smspillaz@gmail.com>2010-01-22 00:16:27 +0800
commit6c76a7cf9455e535a815a74bbebe261c8b9785f0 (patch)
treed206b773445dabb578cdbedb0bce02c3948a04cb /include
parentc5e731bfd78ece8714470519a3bbb470f2d09001 (diff)
downloadzcomp-6c76a7cf9455e535a815a74bbebe261c8b9785f0.tar.gz
zcomp-6c76a7cf9455e535a815a74bbebe261c8b9785f0.tar.bz2
Add appropriate operator overloads to CompPoint
Diffstat (limited to 'include')
-rw-r--r--include/core/point.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/core/point.h b/include/core/point.h
index 5d1a3e8..8e799f0 100644
--- a/include/core/point.h
+++ b/include/core/point.h
@@ -44,6 +44,12 @@ class CompPoint {
bool operator== (const CompPoint &) const;
bool operator!= (const CompPoint &) const;
+
+ CompPoint & operator-= (const CompPoint &);
+ CompPoint & operator+= (const CompPoint &);
+
+ CompPoint operator+ (const CompPoint &) const;
+ CompPoint operator- (const CompPoint &) const;
typedef std::vector<CompPoint> vector;
typedef std::vector<CompPoint *> ptrVector;