gfm ~master (2021-03-12T16:19:32Z)
Home
Dub
Repo
clamp
gfm
math
funcs
Clamp x in [min, max], akin to GLSL's clamp.
@
nogc
pure nothrow
T
clamp
(
T
)
(
T
x
,
T
min
,
T
max
)
Meta
Source
See Implementation
gfm
math
funcs
functions
average
clamp
degrees
fract
ilog2
inverseSqrt
isPowerOf2
lerp
lfloor
ltrunc
maxElement
minElement
moduloWrap
nextPowerOf2
radians
safeAcos
safeAsin
sinOverX
smoothStep
solveCubic
solveLinear
solveQuadratic
solveQuartic
standardDeviation
step
variance
Clamp x in [min, max], akin to GLSL's clamp.