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

Function ImAbs

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

Source from the content-addressed store, hash-verified

426static inline float ImLog(float x) { return logf(x); } // DragBehaviorT/SliderBehaviorT uses ImLog with either float/double and need the precision
427static inline double ImLog(double x) { return log(x); }
428static inline int ImAbs(int x) { return x < 0 ? -x : x; }
429static inline float ImAbs(float x) { return fabsf(x); }
430static inline double ImAbs(double x) { return fabs(x); }
431static inline float ImSign(float x) { return (x < 0.0f) ? -1.0f : (x > 0.0f) ? 1.0f : 0.0f; } // Sign operator - returns -1, 0 or 1 based on sign of argument

Callers 6

LockWheelingWindowFunction · 0.85
UpdateMouseWheelMethod · 0.85
_PathArcToFastExMethod · 0.85
PathArcToMethod · 0.85
ScaleRatioFromValueTMethod · 0.85
ScaleValueFromRatioTMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected