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

Function ImSwap

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

Source from the content-addressed store, hash-verified

444template<typename T> static inline T ImClamp(T v, T mn, T mx) { return (v < mn) ? mn : (v > mx) ? mx : v; }
445template<typename T> static inline T ImLerp(T a, T b, float t) { return (T)(a + (b - a) * t); }
446template<typename T> static inline void ImSwap(T& a, T& b) { T tmp = a; a = b; b = tmp; }
447template<typename T> static inline T ImAddClampOverflow(T a, T b, T mn, T mx) { if (b < 0 && (a < mn - b)) return mn; if (b > 0 && (a > mx - b)) return mx; return a + b; }
448template<typename T> static inline T ImSubClampOverflow(T a, T b, T mn, T mx) { if (b > 0 && (a < mn + b)) return mn; if (b < 0 && (a > mx + b)) return mx; return a - b; }
449// - Misc maths helpers

Callers 9

ColorConvertRGBtoHSVMethod · 0.85
ScaleRatioFromValueTMethod · 0.85
ScaleValueFromRatioTMethod · 0.85
TempInputScalarMethod · 0.85
InputTextExMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected