MCPcopy Create free account
hub / github.com/MyGUI/mygui / shoelace

Function shoelace

MyGUIEngine/src/msdfgen/core/Contour.cpp:8–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6namespace msdfgen {
7
8static double shoelace(const Point2 &a, const Point2 &b) {
9 return (b.x-a.x)*(a.y+b.y);
10}
11
12void Contour::addEdge(const EdgeHolder &edge) {
13 edges.push_back(edge);

Callers 1

windingMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected