gfm v1.1.3 (2014-06-18T21:14:08Z)
Home
Dub
Repo
clamp
gfm
math
funcs
Clamp x in [min, max], akin to GLSL's clamp.
pure nothrow
T
clamp
(
T
)
(
T
x
,
T
min
,
T
max
)
Meta
Source
See Implementation
gfm
math
funcs
functions
clamp
degrees
fract
ilog2
isPowerOf2
lerp
lfloor
ltrunc
max
min
moduloWrap
nextPowerOf2
radians
safeAcos
safeAsin
sinOverX
smoothStep
solveCubic
solveLinear
solveQuadratic
solveQuartic
step
Clamp x in [min, max], akin to GLSL's clamp.