2D Axis-aligned bounding box.
Rect2 provides an 2D Axis-Aligned Bounding Box. It consists of a position, a size, and several utility functions. It is typically used for fast overlap tests.
Construct a [code]Rect2[/code] by position and size.
Construct a [code]Rect2[/code] by x, y, width and height.
Returns the intersection of this [code]Rect2[/code] and b.
Returns true if this [code]Rect2[/code] completely encloses another one.
Return this [code]Rect2[/code] expanded to include a given point.
Get the area of the [code]Rect2[/code].
Return a copy of the [code]Rect2[/code] grown a given amount of units towards all the sides.
Return true if the [code]Rect2[/code] is flat or empty.
Return true if the [code]Rect2[/code] contains a point.
Return true if the [code]Rect2[/code] overlaps with another.
Combine this [code]Rect2[/code] with another, a larger one is returned that contains both.
Ending corner.
Position (starting corner).
Size from position to end.