| 892 | } |
| 893 | |
| 894 | void 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 | |
| 909 | void ImDrawList::PathArcTo(const ImVec2& center, float radius, float a_min, float a_max, int num_segments) |
| 910 | { |
no test coverage detected