Returns a [Rect2i] with equivalent position and area, modified so that the top-left corner is the origin and [code]width[/code] and [code]height[/code] are positive.
</description>
</method>
<methodname="clip">
<returntype="Rect2i">
</return>
<argumentindex="0"name="b"type="Rect2i">
</argument>
<description>
Returns the intersection of this [Rect2i] and b.
</description>
</method>
<methodname="encloses">
<returntype="bool">
</return>
<argumentindex="0"name="b"type="Rect2i">
</argument>
<description>
Returns [code]true[/code] if this [Rect2i] completely encloses another one.
</description>
</method>
<methodname="expand">
<returntype="Rect2i">
</return>
<argumentindex="0"name="to"type="Vector2i">
</argument>
<description>
Returns this [Rect2i] expanded to include a given point.
</description>
</method>
<methodname="get_area">
<returntype="int">
</return>
<description>
Returns the area of the [Rect2i].
</description>
</method>
<methodname="grow">
<returntype="Rect2i">
</return>
<argumentindex="0"name="by"type="int">
</argument>
<description>
Returns a copy of the [Rect2i] grown a given amount of units towards all the sides.
</description>
</method>
<methodname="grow_individual">
<returntype="Rect2i">
</return>
<argumentindex="0"name="left"type="int">
</argument>
<argumentindex="1"name="top"type="int">
</argument>
<argumentindex="2"name="right"type="int">
</argument>
<argumentindex="3"name=" bottom"type="int">
</argument>
<description>
Returns a copy of the [Rect2i] grown a given amount of units towards each direction individually.
</description>
</method>
<methodname="grow_margin">
<returntype="Rect2i">
</return>
<argumentindex="0"name="margin"type="int">
</argument>
<argumentindex="1"name="by"type="int">
</argument>
<description>
Returns a copy of the [Rect2i] grown a given amount of units towards the [enum Margin] direction.
</description>
</method>
<methodname="has_no_area">
<returntype="bool">
</return>
<description>
Returns [code]true[/code] if the [Rect2i] is flat or empty.
</description>
</method>
<methodname="has_point">
<returntype="bool">
</return>
<argumentindex="0"name="point"type="Vector2i">
</argument>
<description>
Returns [code]true[/code] if the [Rect2i] contains a point.
</description>
</method>
<methodname="intersects">
<returntype="bool">
</return>
<argumentindex="0"name="b"type="Rect2i">
</argument>
<description>
Returns [code]true[/code] if the [Rect2i] overlaps with [code]b[/code] (i.e. they have at least one point in common).
If [code]include_borders[/code] is [code]true[/code], they will also be considered overlapping if their borders touch, even without intersection.
</description>
</method>
<methodname="merge">
<returntype="Rect2i">
</return>
<argumentindex="0"name="b"type="Rect2i">
</argument>
<description>
Returns a larger [Rect2i] that contains this [Rect2i] and [code]b[/code].