MCPcopy Create free account
hub / github.com/FastLED/FastLED / fmodPos

Method fmodPos

src/fl/fx/2d/flowfield.cpp.hpp:137–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137float FlowFieldFloat::fmodPos(float x, float m) {
138 float r = fmodf(x, m);
139 return r < 0.0f ? r + m : r;
140}
141
142float FlowFieldFloat::clampf(float v, float lo, float hi) {
143 return (v < lo) ? lo : (v > hi) ? hi : v;

Callers

nothing calls this directly

Calls 1

fmodfFunction · 0.85

Tested by

no test coverage detected