MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / lerp_batch

Function lerp_batch

core/panel.c:386–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

384}
385
386static void lerp_batch(float curve[64], float a, float b, float scale, const uint8_t *indices, const uint8_t *amounts) {
387 float step = (a - b) * scale;
388 for (size_t idx = 0; indices[idx] != 0xFF; idx++) {
389 curve[indices[idx]] = b + step * amounts[idx];
390 }
391}
392
393static void lerp_between(float *curve, size_t length) {
394 float a = *curve;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected