| 1580 | } |
| 1581 | |
| 1582 | bool ImTriangleContainsPoint(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p) |
| 1583 | { |
| 1584 | bool b1 = ((p.x - b.x) * (a.y - b.y) - (p.y - b.y) * (a.x - b.x)) < 0.0f; |
| 1585 | bool b2 = ((p.x - c.x) * (b.y - c.y) - (p.y - c.y) * (b.x - c.x)) < 0.0f; |
| 1586 | bool b3 = ((p.x - a.x) * (c.y - a.y) - (p.y - a.y) * (c.x - a.x)) < 0.0f; |
| 1587 | return ((b1 == b2) && (b2 == b3)); |
| 1588 | } |
| 1589 | |
| 1590 | void ImTriangleBarycentricCoords(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p, float& out_u, float& out_v, float& out_w) |
| 1591 | { |
no outgoing calls
no test coverage detected