diff options
Diffstat (limited to 'doc/classes/Rect2i.xml')
-rw-r--r-- | doc/classes/Rect2i.xml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/classes/Rect2i.xml b/doc/classes/Rect2i.xml index c578b8cbb4..2f6f4de66d 100644 --- a/doc/classes/Rect2i.xml +++ b/doc/classes/Rect2i.xml @@ -76,6 +76,13 @@ Returns the area of the [Rect2i]. </description> </method> + <method name="get_center" qualifiers="const"> + <return type="Vector2i" /> + <description> + Returns the center of the [Rect2i], which is equal to [member position] + ([member size] / 2). + If [member size] is an odd number, the returned center value will be rounded towards [member position]. + </description> + </method> <method name="grow" qualifiers="const"> <return type="Rect2i" /> <argument index="0" name="amount" type="int" /> |