Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Nelarius/imnodes
/ clamp
Function
clamp
example/color_node_editor.cpp:40–43 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
38
39
template<class T>
40
T clamp(T x, T a, T b)
41
{
42
return std::min(b, std::max(x, a));
43
}
44
45
static float current_time_seconds = 0.f;
46
static bool emulate_three_button_mouse = false;
Callers
1
evaluate
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected