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

Function ImAcos01

KBotExt/imgui/imgui_draw.cpp:3877–3883  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3875}
3876
3877static inline float ImAcos01(float x)
3878{
3879 if (x <= 0.0f) return IM_PI * 0.5f;
3880 if (x >= 1.0f) return 0.0f;
3881 return ImAcos(x);
3882 //return (-0.69813170079773212f * x * x - 0.87266462599716477f) * x + 1.5707963267948966f; // Cheap approximation, may be enough for what we do.
3883}
3884
3885// FIXME: Cleanup and move code to ImDrawList.
3886void ImGui::RenderRectFilledRangeH(ImDrawList* draw_list, const ImRect& rect, ImU32 col, float x_start_norm, float x_end_norm, float rounding)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected