MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / ImExponentialMovingAverage

Function ImExponentialMovingAverage

KBotExt/imgui/imgui_internal.h:470–470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

468static inline ImVec2 ImMul(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x * rhs.x, lhs.y * rhs.y); }
469static inline bool ImIsFloatAboveGuaranteedIntegerPrecision(float f) { return f <= -16777216 || f >= 16777216; }
470static inline float ImExponentialMovingAverage(float avg, float sample, int n) { avg -= avg / n; avg += sample / n; return avg; }
471IM_MSVC_RUNTIME_CHECKS_RESTORE
472
473// Helpers: Geometry

Callers 1

UpdateMouseWheelMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected