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

Method create

MyGUIEngine/src/msdfgen/core/edge-segments.cpp:9–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7namespace msdfgen {
8
9EdgeSegment *EdgeSegment::create(Point2 p0, Point2 p1, EdgeColor edgeColor) {
10 return new LinearSegment(p0, p1, edgeColor);
11}
12
13EdgeSegment *EdgeSegment::create(Point2 p0, Point2 p1, Point2 p2, EdgeColor edgeColor) {
14 if (!crossProduct(p1-p0, p2-p1))

Callers

nothing calls this directly

Calls 1

crossProductFunction · 0.85

Tested by

no test coverage detected