MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / rectInclude

Function rectInclude

src/util/util.cpp:49–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47
48
49void rectInclude(QRectF& rect, const QPointF& point)
50{
51 if (point.x() < rect.left())
52 rect.setLeft(point.x());
53 else if (point.x() > rect.right())
54 rect.setRight(point.x());
55
56 if (point.y() < rect.top())
57 rect.setTop(point.y());
58 else if (point.y() > rect.bottom())
59 rect.setBottom(point.y());
60}
61
62void rectIncludeSafe(QRectF& rect, const QPointF& point)
63{

Callers 15

rectIncludeTestMethod · 0.85
updateDirtyRectImplMethod · 0.85
updateDirtyRectMethod · 0.85
updateDirtyRectImplMethod · 0.85
updateDirtyRectImplMethod · 0.85
updateDirtyRectImplMethod · 0.85
boundingBoxFunction · 0.85
applyCornerPassPointsMethod · 0.85
updateDirtyRectMethod · 0.85
setDirtyRectMethod · 0.85
mousePressEventMethod · 0.85

Calls 2

xMethod · 0.80
yMethod · 0.80

Tested by

no test coverage detected