MCPcopy Create free account
hub / github.com/RenderKit/embree / ImAcos01

Function ImAcos01

tutorials/common/imgui/imgui_draw.cpp:3818–3824  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3816}
3817
3818static inline float ImAcos01(float x)
3819{
3820 if (x <= 0.0f) return IM_PI * 0.5f;
3821 if (x >= 1.0f) return 0.0f;
3822 return ImAcos(x);
3823 //return (-0.69813170079773212f * x * x - 0.87266462599716477f) * x + 1.5707963267948966f; // Cheap approximation, may be enough for what we do.
3824}
3825
3826// FIXME: Cleanup and move code to ImDrawList.
3827void 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