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

Function pointBounds

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

Source from the content-addressed store, hash-verified

403}
404
405static void pointBounds(Point2 p, double &xMin, double &yMin, double &xMax, double &yMax) {
406 if (p.x < xMin) xMin = p.x;
407 if (p.y < yMin) yMin = p.y;
408 if (p.x > xMax) xMax = p.x;
409 if (p.y > yMax) yMax = p.y;
410}
411
412void LinearSegment::bound(double &xMin, double &yMin, double &xMax, double &yMax) const {
413 pointBounds(p[0], xMin, yMin, xMax, yMax);

Callers 1

boundMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected