Skip to content

Commit 9c1d540

Browse files
author
Godot Organization
committed
classref: Sync with current master branch (2d3bdca)
1 parent 9a2b56e commit 9c1d540

24 files changed

+1681
-1416
lines changed

classes/[email protected]

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ Positive floating-point infinity. This is the result of floating-point division
109109

110110
**NAN** = ``nan`` :ref:`🔗<class_@GDScript_constant_NAN>`
111111

112-
"Not a Number", an invalid floating-point value. :ref:`NAN<class_@GDScript_constant_NAN>` has special properties, including that ``!=`` always returns ``true``, while other comparison operators always return ``false``. This is true even when comparing with itself (``NAN == NAN`` returns ``false`` and ``NAN != NAN`` returns ``true``). It is returned by some invalid operations, such as dividing floating-point ``0.0`` by ``0.0``.
112+
"Not a Number", an invalid floating-point value. It is returned by some invalid operations, such as dividing floating-point ``0.0`` by ``0.0``.
113+
114+
\ :ref:`NAN<class_@GDScript_constant_NAN>` has special properties, including that ``!=`` always returns ``true``, while other comparison operators always return ``false``. This is true even when comparing with itself (``NAN == NAN`` returns ``false`` and ``NAN != NAN`` returns ``true``). Due to this, you must use :ref:`@GlobalScope.is_nan()<class_@GlobalScope_method_is_nan>` to check whether a number is equal to :ref:`NAN<class_@GDScript_constant_NAN>`.
113115

114116
\ **Warning:** "Not a Number" is only a concept with floating-point numbers, and has no equivalent for integers. Dividing an integer ``0`` by ``0`` will not result in :ref:`NAN<class_@GDScript_constant_NAN>` and will result in a run-time error instead.
115117

classes/[email protected]

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6015,7 +6015,7 @@ Infinity values of the same sign are considered equal.
60156015

60166016
:ref:`bool<class_bool>` **is_finite**\ (\ x\: :ref:`float<class_float>`\ ) :ref:`🔗<class_@GlobalScope_method_is_finite>`
60176017

6018-
Returns whether ``x`` is a finite value, i.e. it is not :ref:`@GDScript.NAN<class_@GDScript_constant_NAN>`, positive infinity, or negative infinity.
6018+
Returns whether ``x`` is a finite value, i.e. it is not :ref:`@GDScript.NAN<class_@GDScript_constant_NAN>`, positive infinity, or negative infinity. See also :ref:`is_inf()<class_@GlobalScope_method_is_inf>` and :ref:`is_nan()<class_@GlobalScope_method_is_nan>`.
60196019

60206020
.. rst-class:: classref-item-separator
60216021

@@ -6027,7 +6027,7 @@ Returns whether ``x`` is a finite value, i.e. it is not :ref:`@GDScript.NAN<clas
60276027

60286028
:ref:`bool<class_bool>` **is_inf**\ (\ x\: :ref:`float<class_float>`\ ) :ref:`🔗<class_@GlobalScope_method_is_inf>`
60296029

6030-
Returns ``true`` if ``x`` is either positive infinity or negative infinity.
6030+
Returns ``true`` if ``x`` is either positive infinity or negative infinity. See also :ref:`is_finite()<class_@GlobalScope_method_is_finite>` and :ref:`is_nan()<class_@GlobalScope_method_is_nan>`.
60316031

60326032
.. rst-class:: classref-item-separator
60336033

@@ -6063,7 +6063,7 @@ Returns ``true`` if ``instance`` is a valid Object (e.g. has not been deleted fr
60636063

60646064
:ref:`bool<class_bool>` **is_nan**\ (\ x\: :ref:`float<class_float>`\ ) :ref:`🔗<class_@GlobalScope_method_is_nan>`
60656065

6066-
Returns ``true`` if ``x`` is a NaN ("Not a Number" or invalid) value.
6066+
Returns ``true`` if ``x`` is a NaN ("Not a Number" or invalid) value. This method is needed as :ref:`@GDScript.NAN<class_@GDScript_constant_NAN>` is not equal to itself, which means ``x == NAN`` can't be used to check whether a value is a NaN.
60676067

60686068
.. rst-class:: classref-item-separator
60696069

classes/class_canvasitem.rst

Lines changed: 133 additions & 133 deletions
Large diffs are not rendered by default.

classes/class_control.rst

Lines changed: 93 additions & 59 deletions
Large diffs are not rendered by default.

classes/class_editorsettings.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ Properties
605605
+---------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
606606
| :ref:`float<class_float>` | :ref:`interface/touchscreen/scale_gizmo_handles<class_EditorSettings_property_interface/touchscreen/scale_gizmo_handles>` |
607607
+---------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
608-
| :ref:`int<class_int>` | :ref:`network/connection/engine_version_update_mode<class_EditorSettings_property_network/connection/engine_version_update_mode>` |
608+
| :ref:`int<class_int>` | :ref:`network/connection/check_for_updates<class_EditorSettings_property_network/connection/check_for_updates>` |
609609
+---------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
610610
| :ref:`int<class_int>` | :ref:`network/connection/network_mode<class_EditorSettings_property_network/connection/network_mode>` |
611611
+---------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
@@ -4488,11 +4488,11 @@ Specify the multiplier to apply to the scale for the editor gizmo handles to imp
44884488

44894489
----
44904490

4491-
.. _class_EditorSettings_property_network/connection/engine_version_update_mode:
4491+
.. _class_EditorSettings_property_network/connection/check_for_updates:
44924492

44934493
.. rst-class:: classref-property
44944494

4495-
:ref:`int<class_int>` **network/connection/engine_version_update_mode** :ref:`🔗<class_EditorSettings_property_network/connection/engine_version_update_mode>`
4495+
:ref:`int<class_int>` **network/connection/check_for_updates** :ref:`🔗<class_EditorSettings_property_network/connection/check_for_updates>`
44964496

44974497
Specifies how the engine should check for updates.
44984498

0 commit comments

Comments
 (0)