MCPcopy Create free account
hub / github.com/NetHack/NetHack / include

Function include

outdated/win/Qt3/qt3_clust.cpp:6–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include "qt3_clust.h"
5
6static
7void include(QRect& r, const QRect& rect)
8{
9 if (rect.left()<r.left()) {
10 r.setLeft(rect.left());
11 }
12 if (rect.right()>r.right()) {
13 r.setRight(rect.right());
14 }
15 if (rect.top()<r.top()) {
16 r.setTop(rect.top());
17 }
18 if (rect.bottom()>r.bottom()) {
19 r.setBottom(rect.bottom());
20 }
21}
22
23/*
24A Clusterizer groups rectangles (QRects) into non-overlapping rectangles

Callers 1

addMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected