MCPcopy 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
36static 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
44static float getFixedRange(const float& value)
45{

Callers 3

fromHSLMethod · 0.85
interpolateMethod · 0.85
fixBoundsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected