MCPcopy Create free account
hub / github.com/DFHack/dfhack / inClipGlobal

Function inClipGlobal

library/include/modules/Screen.h:164–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162 return df::coord2d(x + view.first.x, y + view.first.y);
163 }
164 bool inClipGlobal(int x, int y) const {
165 return x >= clip.first.x && x <= clip.second.x &&
166 y >= clip.first.y && y <= clip.second.y;
167 }
168 bool inClipGlobal(df::coord2d pos) const {
169 return inClipGlobal(pos.x, pos.y);
170 }

Callers 2

inClipLocalFunction · 0.85
isValidPosFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected