Added unary - operator.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21117 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2007-05-12 16:15:20 +00:00
parent 0473808ce2
commit f2d34b2994
2 changed files with 8 additions and 0 deletions
+7
View File
@@ -33,6 +33,13 @@ BPoint::PrintToStream() const
}
BPoint
BPoint::operator-() const
{
return BPoint(-x, -y);
}
BPoint
BPoint::operator+(const BPoint& p) const
{