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

Function ImGetDirQuadrantFromDelta

KBotExt/imgui/imgui.cpp:10828–10833  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10826}
10827
10828static ImGuiDir ImGetDirQuadrantFromDelta(float dx, float dy)
10829{
10830 if (ImFabs(dx) > ImFabs(dy))
10831 return (dx > 0.0f) ? ImGuiDir_Right : ImGuiDir_Left;
10832 return (dy > 0.0f) ? ImGuiDir_Down : ImGuiDir_Up;
10833}
10834
10835static float inline NavScoreItemDistInterval(float cand_min, float cand_max, float curr_min, float curr_max)
10836{

Callers 1

NavScoreItemMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected