further work on util
This commit is contained in:
parent
3af004e49b
commit
4710b4ae20
5 changed files with 108 additions and 53 deletions
|
|
@ -23,6 +23,10 @@ class Point {
|
|||
return Point<T>(_x + p.getX(), _y + p.getY());
|
||||
}
|
||||
|
||||
Point<T> operator-(const Point<T>& p) const {
|
||||
return Point<T>(_x - p.getX(), _y - p.getY());
|
||||
}
|
||||
|
||||
bool operator==(const Point<T>& p) const {
|
||||
return p.getX() == _x && p.getY() == _y;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue