MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/PositionBasedDynamics / ImAbs

Function ImAbs

extern/imgui/imgui_internal.h:448–448  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

446static inline float ImLog(float x) { return logf(x); } // DragBehaviorT/SliderBehaviorT uses ImLog with either float/double and need the precision
447static inline double ImLog(double x) { return log(x); }
448static inline int ImAbs(int x) { return x < 0 ? -x : x; }
449static inline float ImAbs(float x) { return fabsf(x); }
450static inline double ImAbs(double x) { return fabs(x); }
451static 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