Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/arrayfire/forge
/ clampTo01
Function
clampTo01
src/backend/opengl/common.cpp:212–215 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
210
}
211
212
float clampTo01(const float pValue)
213
{
214
return (pValue < 0.0f ? 0.0f : (pValue>1.0f ? 1.0f : pValue));
215
}
216
217
#if defined(OS_WIN)
218
#include <windows.h>
Callers
1
setColor
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected