Library globals

Namespace globals . math

View source

(no description)

Functions

abs

approx_eq

avg

clamp

this follows std::clamp for argument order, as opposed to qBound which uses (min, value, max)

log10

max

min

mod

note - mathlib defines an fmod function (added after this was written) It uses C-library fmod(), which has different rounding behaviour to this code (eg, fmod(-5, 4) gives -1, whereas this code gives 3)

sgn