MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / PathArcToFast

Method PathArcToFast

lib/imgui/imgui_draw.cpp:894–907  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

892}
893
894void ImDrawList::PathArcToFast(const ImVec2& center, float radius, int a_min_of_12, int a_max_of_12)
895{
896 if (radius == 0.0f || a_min_of_12 > a_max_of_12)
897 {
898 _Path.push_back(center);
899 return;
900 }
901 _Path.reserve(_Path.Size + (a_max_of_12 - a_min_of_12 + 1));
902 for (int a = a_min_of_12; a <= a_max_of_12; a++)
903 {
904 const ImVec2& c = _Data->CircleVtx12[a % IM_ARRAYSIZE(_Data->CircleVtx12)];
905 _Path.push_back(ImVec2(center.x + c.x * radius, center.y + c.y * radius));
906 }
907}
908
909void ImDrawList::PathArcTo(const ImVec2& center, float radius, float a_min, float a_max, int num_segments)
910{

Callers 3

TabItemBackgroundMethod · 0.80

Calls 3

ImVec2Class · 0.85
push_backMethod · 0.45
reserveMethod · 0.45

Tested by

no test coverage detected