MCPcopy 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

255using math::rescale;
256
257inline 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
261using math::crossfade;
262

Callers 1

getBrightnessMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected