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

Function ImTriangleArea

KBotExt/imgui/imgui_internal.h:482–482  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

480IMGUI_API ImVec2 ImTriangleClosestPoint(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p);
481IMGUI_API void ImTriangleBarycentricCoords(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p, float& out_u, float& out_v, float& out_w);
482inline float ImTriangleArea(const ImVec2& a, const ImVec2& b, const ImVec2& c) { return ImFabs((a.x * (b.y - c.y)) + (b.x * (c.y - a.y)) + (c.x * (a.y - b.y))) * 0.5f; }
483
484// Helper: ImVec1 (1D vector)
485// (this odd construct is used to facilitate the transition between 1D and 2D, and the maintenance of some branches/patches)

Callers 1

DebugNodeDrawListMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected