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

Function ImIsFloatAboveGuaranteedIntegerPrecision

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

Source from the content-addressed store, hash-verified

467static inline float ImLinearSweep(float current, float target, float speed) { if (current < target) return ImMin(current + speed, target); if (current > target) return ImMax(current - speed, target); return current; }
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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected