Math

gdext.api.Math
object Math

Numeric helpers mirroring Godot's @GlobalScope math utilities, for game code that wants the engine's exact semantics without an engine call. Reached as gdext.api.Math.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Math.type

Members list

Value members

Concrete methods

def moveToward(from: Double, to: Double, delta: Double): Double

Godot's move_toward: step from toward to by at most delta (never overshooting). Matches the engine's scalar move_toward.

Godot's move_toward: step from toward to by at most delta (never overshooting). Matches the engine's scalar move_toward.

Attributes

def moveToward(from: Float, to: Float, delta: Float): Float

Float overload of moveToward.

Float overload of moveToward.

Attributes