mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Replace Rect2(i) has_no_area with has_area
This commit is contained in:
parent
817ae95667
commit
995b9f94e8
12 changed files with 44 additions and 46 deletions
|
|
@ -93,7 +93,7 @@
|
|||
<method name="get_area" qualifiers="const">
|
||||
<return type="float" />
|
||||
<description>
|
||||
Returns the area of the [Rect2]. See also [method has_no_area].
|
||||
Returns the area of the [Rect2]. See also [method has_area].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_center" qualifiers="const">
|
||||
|
|
@ -127,11 +127,10 @@
|
|||
Returns a copy of the [Rect2] grown by the specified [param amount] on the specified [enum Side].
|
||||
</description>
|
||||
</method>
|
||||
<method name="has_no_area" qualifiers="const">
|
||||
<method name="has_area" qualifiers="const">
|
||||
<return type="bool" />
|
||||
<description>
|
||||
Returns [code]true[/code] if the [Rect2] is flat or empty, [code]false[/code] otherwise. See also [method get_area].
|
||||
[b]Note:[/b] If the [Rect2] has a negative size and is not flat or empty, [method has_no_area] will return [code]true[/code].
|
||||
Returns [code]true[/code] if the [Rect2] has area, and [code]false[/code] if the [Rect2] is linear, empty, or has a negative [member size]. See also [method get_area].
|
||||
</description>
|
||||
</method>
|
||||
<method name="has_point" qualifiers="const">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue