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

Function boundPoint

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

Source from the content-addressed store, hash-verified

25}
26
27static void boundPoint(double &xMin, double &yMin, double &xMax, double &yMax, Point2 p) {
28 if (p.x < xMin) xMin = p.x;
29 if (p.y < yMin) yMin = p.y;
30 if (p.x > xMax) xMax = p.x;
31 if (p.y > yMax) yMax = p.y;
32}
33
34void Contour::bound(double &xMin, double &yMin, double &xMax, double &yMax) const {
35 for (std::vector<EdgeHolder>::const_iterator edge = edges.begin(); edge != edges.end(); ++edge)

Callers 1

boundMitersMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected