You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a custom icon to the current script. The script must be registered as a global class using the ``class_name`` keyword for this to have a visible effect. The icon specified at ``icon_path`` is displayed in the Scene dock for every node of that class, as well as in various editor dialogs.
628
+
Add a custom icon to the current script. The icon specified at ``icon_path`` is displayed in the Scene dock for every node of that class, as well as in various editor dialogs.
@@ -5219,6 +5225,25 @@ Returns the arc cosine of ``x`` in radians. Use to get the angle of cosine ``x``
5219
5225
5220
5226
----
5221
5227
5228
+
.. _class_@GlobalScope_method_acosh:
5229
+
5230
+
.. rst-class:: classref-method
5231
+
5232
+
:ref:`float<class_float>` **acosh** **(** :ref:`float<class_float>` x **)**
5233
+
5234
+
Returns the hyperbolic arc (also called inverse) cosine of ``x``, returning a value in radians. Use it to get the angle from an angle's cosine in hyperbolic space if ``x`` is larger or equal to 1. For values of ``x`` lower than 1, it will return 0, in order to prevent :ref:`acosh<class_@GlobalScope_method_acosh>` from returning :ref:`@GDScript.NAN<class_@GDScript_constant_NAN>`.
5235
+
5236
+
::
5237
+
5238
+
var a = acosh(2) # Returns 1.31695789692482
5239
+
cosh(a) # Returns 2
5240
+
5241
+
var b = acosh(-1) # Returns 0
5242
+
5243
+
.. rst-class:: classref-item-separator
5244
+
5245
+
----
5246
+
5222
5247
.. _class_@GlobalScope_method_asin:
5223
5248
5224
5249
.. rst-class:: classref-method
@@ -5236,6 +5261,23 @@ Returns the arc sine of ``x`` in radians. Use to get the angle of sine ``x``. ``
5236
5261
5237
5262
----
5238
5263
5264
+
.. _class_@GlobalScope_method_asinh:
5265
+
5266
+
.. rst-class:: classref-method
5267
+
5268
+
:ref:`float<class_float>` **asinh** **(** :ref:`float<class_float>` x **)**
5269
+
5270
+
Returns the hyperbolic arc (also called inverse) sine of ``x``, returning a value in radians. Use it to get the angle from an angle's sine in hyperbolic space.
5271
+
5272
+
::
5273
+
5274
+
var a = asinh(0.9) # Returns 0.8088669356527824
5275
+
sinh(a) # Returns 0.9
5276
+
5277
+
.. rst-class:: classref-item-separator
5278
+
5279
+
----
5280
+
5239
5281
.. _class_@GlobalScope_method_atan:
5240
5282
5241
5283
.. rst-class:: classref-method
@@ -5274,6 +5316,28 @@ Important note: The Y coordinate comes first, by convention.
5274
5316
5275
5317
----
5276
5318
5319
+
.. _class_@GlobalScope_method_atanh:
5320
+
5321
+
.. rst-class:: classref-method
5322
+
5323
+
:ref:`float<class_float>` **atanh** **(** :ref:`float<class_float>` x **)**
5324
+
5325
+
Returns the hyperbolic arc (also called inverse) tangent of ``x``, returning a value in radians. Use it to get the angle from an angle's tangent in hyperbolic space if ``x`` is between -1 and 1 (non-inclusive).
5326
+
5327
+
In mathematics, the inverse hyperbolic tangent is only defined for -1 < ``x`` < 1 in the real set, so values equal or lower to -1 for ``x`` return negative :ref:`@GDScript.INF<class_@GDScript_constant_INF>` and values equal or higher than 1 return positive :ref:`@GDScript.INF<class_@GDScript_constant_INF>` in order to prevent :ref:`atanh<class_@GlobalScope_method_atanh>` from returning :ref:`@GDScript.NAN<class_@GDScript_constant_NAN>`.
Copy file name to clipboardExpand all lines: classes/class_callbacktweener.rst
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,8 @@ Description
21
21
22
22
**CallbackTweener** is used to call a method in a tweening sequence. See :ref:`Tween.tween_callback<class_Tween_method_tween_callback>` for more usage information.
23
23
24
+
The tweener will finish automatically if the callback's target object is freed.
25
+
24
26
\ **Note:** :ref:`Tween.tween_callback<class_Tween_method_tween_callback>` is the only correct way to create **CallbackTweener**. Any **CallbackTweener** created manually will not function correctly.
0 commit comments