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

Function mkrect_wh

library/include/Types.h:113–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111 }
112
113 inline rect2d mkrect_wh(int x, int y, int w, int h) {
114 return rect2d(df::coord2d(x, y), df::coord2d(x+w-1, y+h-1));
115 }
116
117 inline df::coord2d rect_size(const rect2d &rect) {
118 return rect.second - rect.first + df::coord2d(1,1);

Callers 1

getMapViewportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected