GodotMath
Godot's scalar math helpers (core/math/math_funcs.h), in single precision like the engine's real_t. The math builtins are built on these, so their results match the engine's own implementations.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
GodotMath.type
Members list
Value members
Concrete methods
Barry-Goldman cubic interpolation with explicit knot times.
Barry-Goldman cubic interpolation with explicit knot times.
Attributes
C fmod: the result has the sign of x.
C fmod: the result has the sign of x.
Attributes
Math::fposmod: like fmod, but the result has the sign of y.
Math::fposmod: like fmod, but the result has the sign of y.
Attributes
std::round: halfway cases round away from zero.
std::round: halfway cases round away from zero.
Attributes
SIGN: 1, -1 or 0.
SIGN: 1, -1 or 0.
Attributes
Math::snapped: round to the nearest multiple of step (0 = no-op).
Math::snapped: round to the nearest multiple of step (0 = no-op).
Attributes
Math::snapped for integers (computed in double, truncated back).
Math::snapped for integers (computed in double, truncated back).