mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
classref: Sync with current master branch (93be33748)
This commit is contained in:
@@ -78,7 +78,7 @@ Methods
|
||||
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Rect2<class_Rect2>` | :ref:`grow_side<class_Rect2_method_grow_side>` **(** :ref:`int<class_int>` side, :ref:`float<class_float>` amount **)** |const| |
|
||||
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`has_no_area<class_Rect2_method_has_no_area>` **(** **)** |const| |
|
||||
| :ref:`bool<class_bool>` | :ref:`has_area<class_Rect2_method_has_area>` **(** **)** |const| |
|
||||
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`has_point<class_Rect2_method_has_point>` **(** :ref:`Vector2<class_Vector2>` point **)** |const| |
|
||||
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
@@ -226,7 +226,7 @@ Returns a copy of this ``Rect2`` expanded to include a given point.
|
||||
|
||||
- :ref:`float<class_float>` **get_area** **(** **)** |const|
|
||||
|
||||
Returns the area of the ``Rect2``. See also :ref:`has_no_area<class_Rect2_method_has_no_area>`.
|
||||
Returns the area of the ``Rect2``. See also :ref:`has_area<class_Rect2_method_has_area>`.
|
||||
|
||||
----
|
||||
|
||||
@@ -262,13 +262,11 @@ Returns a copy of the ``Rect2`` grown by the specified ``amount`` on the specifi
|
||||
|
||||
----
|
||||
|
||||
.. _class_Rect2_method_has_no_area:
|
||||
.. _class_Rect2_method_has_area:
|
||||
|
||||
- :ref:`bool<class_bool>` **has_no_area** **(** **)** |const|
|
||||
- :ref:`bool<class_bool>` **has_area** **(** **)** |const|
|
||||
|
||||
Returns ``true`` if the ``Rect2`` is flat or empty, ``false`` otherwise. See also :ref:`get_area<class_Rect2_method_get_area>`.
|
||||
|
||||
\ **Note:** If the ``Rect2`` has a negative size and is not flat or empty, :ref:`has_no_area<class_Rect2_method_has_no_area>` will return ``true``.
|
||||
Returns ``true`` if the ``Rect2`` has area, and ``false`` if the ``Rect2`` is linear, empty, or has a negative :ref:`size<class_Rect2_property_size>`. See also :ref:`get_area<class_Rect2_method_get_area>`.
|
||||
|
||||
----
|
||||
|
||||
|
||||
Reference in New Issue
Block a user