gfm v2.0.11 (2015-02-12T17:50:21Z)
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
isPowerOf2
lerp
lfloor
ltrunc
max
maxElement
min
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.