MCPcopy Create free account
hub / github.com/DISTRHO/DPF / getFixedRange

Function getFixedRange

dgl/src/Color.cpp:44–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44static float getFixedRange(const float& value)
45{
46 if (value <= 0.0f)
47 return 0.0f;
48 if (value >= 1.0f)
49 return 1.0f;
50 return value;
51}
52
53static uchar getFixedRange2(const float& value)
54{

Callers 1

getFixedRange2Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected