Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DISTRHO/DPF
/ fixRange
Function
fixRange
dgl/src/Color.cpp:36–42 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
34
}
35
36
static void fixRange(float& value)
37
{
38
/**/ if (value < 0.0f)
39
value = 0.0f;
40
else if (value > 1.0f)
41
value = 1.0f;
42
}
43
44
static float getFixedRange(const float& value)
45
{
Callers
3
fromHSL
Method · 0.85
interpolate
Method · 0.85
fixBounds
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected