Merge pull request #52878 from AnilBK/add-get-center

This commit is contained in:
Rémi Verschelde 2021-09-21 21:30:30 +02:00 committed by GitHub
commit ba57252bd8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
33 changed files with 133 additions and 56 deletions

View file

@ -78,6 +78,12 @@
Returns the area of the [Rect2].
</description>
</method>
<method name="get_center" qualifiers="const">
<return type="Vector2" />
<description>
Returns the center of the [Rect2], which is equal to [member position] + ([member size] / 2).
</description>
</method>
<method name="grow" qualifiers="const">
<return type="Rect2" />
<argument index="0" name="amount" type="float" />