Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/VCVRack/Rack
/ rescale
Function
rescale
include/simd/functions.hpp:257–259 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
255
using math::rescale;
256
257
inline float_4 rescale(float_4 x, float_4 xMin, float_4 xMax, float_4 yMin, float_4 yMax) {
258
return yMin + (x - xMin) / (xMax - xMin) * (yMax - yMin);
259
}
260
261
using math::crossfade;
262
Callers
1
getBrightness
Method · 0.50
Calls
no outgoing calls
Tested by
no test coverage detected