2
0
Эх сурвалжийг харах

Clarify documentation for Rect2's `has_no_area()`

(cherry picked from commit 7f00317f67ccd5b6215195258a4ae826a5e7fa40)
Hugo Locurcio 3 жил өмнө
parent
commit
97ee014434
1 өөрчлөгдсөн 3 нэмэгдсэн , 2 устгасан
  1. 3 2
      doc/classes/Rect2.xml

+ 3 - 2
doc/classes/Rect2.xml

@@ -69,7 +69,7 @@
 		<method name="get_area">
 			<return type="float" />
 			<description>
-				Returns the area of the [Rect2].
+				Returns the area of the [Rect2]. See also [method has_no_area].
 			</description>
 		</method>
 		<method name="grow">
@@ -100,7 +100,8 @@
 		<method name="has_no_area">
 			<return type="bool" />
 			<description>
-				Returns [code]true[/code] if the [Rect2] is flat or empty.
+				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].
 			</description>
 		</method>
 		<method name="has_point">