Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RobTillaart/Arduino
/ constrainedMap
Method
constrainedMap
libraries/FastMap/FastMap.cpp:44–49 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
42
43
44
float FastMap::constrainedMap(float value)
45
{
46
if (value <= _in_min) return _out_min;
47
if (value >= _in_max) return _out_max;
48
return this->map(value);
49
}
50
51
52
float FastMap::lowerConstrainedMap(float value)
Callers
1
unittest
Function · 0.80
Calls
2
map
Method · 0.95
map
Method · 0.95
Tested by
1
unittest
Function · 0.64