From 10e7977be38945da229754301767de039868dec4 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Tue, 1 Feb 2022 17:58:24 +0100 Subject: Clarify documentation for Rect2/Rect2i's `has_no_area()` --- doc/classes/Rect2.xml | 5 +++-- doc/classes/Rect2i.xml | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'doc/classes') diff --git a/doc/classes/Rect2.xml b/doc/classes/Rect2.xml index 65d1654c21..6285b1d155 100644 --- a/doc/classes/Rect2.xml +++ b/doc/classes/Rect2.xml @@ -93,7 +93,7 @@ - Returns the area of the [Rect2]. + Returns the area of the [Rect2]. See also [method has_no_area]. @@ -130,7 +130,8 @@ - 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]. diff --git a/doc/classes/Rect2i.xml b/doc/classes/Rect2i.xml index e070824297..a542bad82b 100644 --- a/doc/classes/Rect2i.xml +++ b/doc/classes/Rect2i.xml @@ -90,7 +90,7 @@ - Returns the area of the [Rect2i]. + Returns the area of the [Rect2i]. See also [method has_no_area]. @@ -128,7 +128,8 @@ - Returns [code]true[/code] if the [Rect2i] is flat or empty. + Returns [code]true[/code] if the [Rect2i] is flat or empty, [code]false[/code] otherwise. See also [method get_area]. + [b]Note:[/b] If the [Rect2i] has a negative size and is not flat or empty, [method has_no_area] will return [code]true[/code]. -- cgit v1.2.3