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

Function ImTriangleArea

tutorials/common/imgui/imgui_internal.h:488–488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

486IMGUI_API ImVec2 ImTriangleClosestPoint(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p);
487IMGUI_API void ImTriangleBarycentricCoords(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p, float& out_u, float& out_v, float& out_w);
488inline 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; }
489IMGUI_API ImGuiDir ImGetDirQuadrantFromDelta(float dx, float dy);
490
491// Helper: ImVec1 (1D vector)

Callers 1

DebugNodeDrawListMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected