Skip to reading
GDScript Programming & Godot

Shared global functions

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page
On this page

Earlier edition reference / Current 0.86.4.0 property paths > p. 350

abs()#

Code example
abs(x: Variant) -> Variant

Absolute value; suffix f/i selects a float/integer form.

absf()#

Code example
absf(x: float) -> float

Absolute value; suffix f/i selects a float/integer form.

absi()#

Code example
absi(x: int) -> int

Absolute value; suffix f/i selects a float/integer form.

acos()#

Code example
acos(x: float) -> float

Inverse trigonometric/hyperbolic calculation; angle results use radians where applicable.

acosh()#

Code example
acosh(x: float) -> float

Inverse trigonometric/hyperbolic calculation; angle results use radians where applicable.

angle_difference()#

Code example
angle_difference(from: float, to: float) -> float

Signed shortest difference between angles in radians.

asin()#

Code example
asin(x: float) -> float

Inverse trigonometric/hyperbolic calculation; angle results use radians where applicable.

asinh()#

Code example
asinh(x: float) -> float

Inverse trigonometric/hyperbolic calculation; angle results use radians where applicable.

Page 305 of 378Permalink
Go to page