Add other
to this
, as if both points were vectors.
Returns the resulting "vector" as a Point.
Source
Point<T> operator +(Point<T> other) {
return new Point<T>(x + other.x, y + other.y);
}
Add other
to this
, as if both points were vectors.
Returns the resulting "vector" as a Point.
Point<T> operator +(Point<T> other) {
return new Point<T>(x + other.x, y + other.y);
}