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

Method shift_depth

plugins/3dveins.cpp:232–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230 buf.resize(dim.x * dim.y * dim.z);
231 }
232 void shift_depth(int16_t to_add) {
233 dim.z += to_add;
234 buf.insert(buf.begin(), dim.x*dim.y*to_add, T());
235 }
236
237 T &operator() (int x, int y, int z = 0) {
238 return buf[x + dim.x*(y + dim.y*z)];

Callers 1

setZBiasMethod · 0.80

Calls 2

insertMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected