offsetPoint method
Offsets the rectangle's x and y values by the corresponding x and y values
of the given point
.
Returns this GRect after the offset is applied.
Implementation
GRect offsetPoint(GPoint point) {
x += point.x;
y += point.y;
return this;
}