mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Add Get Center Method for Rect2/Rect2i and AABB.
This commit is contained in:
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user