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

Method containsPos

library/modules/Maps.cpp:198–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198bool cuboid::containsPos(int16_t x, int16_t y, int16_t z) const {
199 return x >= x_min && y >= y_min && z >= z_min &&
200 x <= x_max && y <= y_max && z <= z_max;
201}
202
203void cuboid::forCoord(std::function<bool(df::coord)> fn, bool row_major) const
204{

Callers 3

removeAreaAquiferMethod · 0.45
isUnitInBoxMethod · 0.45
plant_in_cuboidFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected