MCPcopy 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
39template<class T>
40T clamp(T x, T a, T b)
41{
42 return std::min(b, std::max(x, a));
43}
44
45static float current_time_seconds = 0.f;
46static bool emulate_three_button_mouse = false;

Callers 1

evaluateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected