operator + method
Returns the (vector-) sum of this and other
.
Implementation
Coordinate operator +(Coordinate other) {
return Coordinate(x + other.x, y + other.y);
}
Returns the (vector-) sum of this and other
.
Coordinate operator +(Coordinate other) {
return Coordinate(x + other.x, y + other.y);
}