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

Function ImMin

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

Source from the content-addressed store, hash-verified

460// - ImMin/ImMax/ImClamp/ImLerp/ImSwap are used by widgets which support variety of types: signed/unsigned int/long long float/double
461// (Exceptionally using templates here but we could also redefine them for those types)
462template<typename T> static inline T ImMin(T lhs, T rhs) { return lhs < rhs ? lhs : rhs; }
463template<typename T> static inline T ImMax(T lhs, T rhs) { return lhs >= rhs ? lhs : rhs; }
464template<typename T> static inline T ImClamp(T v, T mn, T mx) { return (v < mn) ? mn : (v > mx) ? mx : v; }
465template<typename T> static inline T ImLerp(T a, T b, float t) { return (T)(a + (b - a) * t); }

Callers 15

BeginTableExMethod · 0.85
TableUpdateLayoutMethod · 0.85
EndTableMethod · 0.85
TableGetCellBgRectMethod · 0.85
TableEndRowMethod · 0.85
TableDrawBordersMethod · 0.85
GetDraggedColumnOffsetFunction · 0.85
SetColumnOffsetMethod · 0.85
BeginColumnsMethod · 0.85
EndColumnsMethod · 0.85

Calls 1

ImVec2Function · 0.85

Tested by

no test coverage detected