Skip to reading
GDScript Programming & Godot

cubic_interpolate_angle()

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

Code example
cubic_interpolate_angle(from: float, to: float, pre: float, post: float, weight: float) ->
float

Cubic interpolation using surrounding values, optionally time samples or angle handling.

cubic_interpolate_angle_in_time()#

Code example
cubic_interpolate_angle_in_time(from: float, to: float, pre: float, post: float, weight: float,
to_t: float, pre_t: float, post_t: float) -> float

Cubic interpolation using surrounding values, optionally time samples or angle handling.

cubic_interpolate_in_time()#

Code example
cubic_interpolate_in_time(from: float, to: float, pre: float, post: float, weight: float, to_t:
float, pre_t: float, post_t: float) -> float

Cubic interpolation using surrounding values, optionally time samples or angle handling.

db_to_linear()#

Code example
db_to_linear(db: float) -> float

Convert audio amplitude between decibels and linear volume.

deg_to_rad()#

Code example
deg_to_rad(deg: float) -> float

Convert angles between degrees and radians.

ease()#

Code example
ease(x: float, curve: float) -> float

Shape a transition weight/curve; useful for animation and blending.

error_string()#

Code example
error_string(error: int) -> String

Human-readable description of an Error code.

exp()#

Code example
exp(x: float) -> float

Exponential, natural logarithm, power or square root. Check the mathematical domain.

Page 308 of 378Permalink
Go to page