diff options
Diffstat (limited to 'doc/classes/Rect2.xml')
-rw-r--r-- | doc/classes/Rect2.xml | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/classes/Rect2.xml b/doc/classes/Rect2.xml index 02a77a0e24..34f81948c4 100644 --- a/doc/classes/Rect2.xml +++ b/doc/classes/Rect2.xml @@ -72,13 +72,14 @@ Returns a [Rect2] 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> - <method name="clip"> + <method name="intersection"> <return type="Rect2"> </return> <argument index="0" name="b" type="Rect2"> </argument> <description> - Returns the intersection of this [Rect2] and b. + Returns the intersection of this [Rect2] and [code]b[/code]. + If the rectangles do not intersect, an empty [Rect2] is returned. </description> </method> <method name="encloses"> @@ -133,12 +134,12 @@ <method name="grow_margin"> <return type="Rect2"> </return> - <argument index="0" name="margin" type="int"> + <argument index="0" name="side" type="int" enum="Side"> </argument> <argument index="1" name="by" type="float"> </argument> <description> - Returns a copy of the [Rect2] grown a given amount of units towards the [enum Margin] direction. + Returns a copy of the [Rect2] grown a given amount of units on the specified [enum Side]. </description> </method> <method name="has_no_area"> |