constructs rectangle using left, top, right, bottom coordinates
constructs rectangle using two points - (left, top), (right, bottom) coordinates
translate rectangle coordinates by (x,y) - add deltax to x coordinates, and deltay to y coordinates
expand rectangle dimensions
updates this rect to intersection with rc, returns true if result is non empty
returns true if this rect has nonempty intersection with rc
this rectangle is completely inside rc
returns true if point is inside of this rectangle
returns true if point is inside of this rectangle
moves this rect to fit rc bounds, retaining the same size
add offset to horizontal and vertical coordinates
for all fields, sets this.field to rc.field if rc.field > this.field
shrink rectangle dimensions
returns bottom right point of rectangle
returns true if rectangle is empty (right <= left || bottom <= top)
returns height of rectangle (bottom - top)
returns middle point
returns average of left, right
returns average of top, bottom
returns size (width, height) in Point
returns top left point of rectangle
returns width of rectangle (right - left)
2D rectangle Note: Rect(0,0,20,10) size is 20x10 -- right and bottom sides are non-inclusive -- if you draw such rect, rightmost drawn pixel will be x=19 and bottom pixel y=9