Module beamui.core.math

Basic math utilities.

Import line

import beamui.core.math;

Functions

NameDescription
clamp(v, min, max)
fequal2(a, b) Check that two float numbers differ in less than 0.01
fequal6(a, b) Check that two float numbers are equal in first 6 signs after point
fzero2(a) Check that a float number is closer to zero than 0.01
fzero6(a) Check that a float number is equal to zero in first 6 signs after point
max(a, b)
max(a, b, c, d)
max(a, b, c)
max(a, b, c, d, e)
min(a, b)
min(a, b, c)
min(a, b, c, d)
min(a, b, c, d, e)