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

Method clampNew

library/include/modules/Maps.h:216–216  ·  view source on GitHub ↗

Return a new cuboid representing overlapping volume. Invalid result implies no intersection or invalid input.

Source from the content-addressed store, hash-verified

214
215 // Return a new cuboid representing overlapping volume. Invalid result implies no intersection or invalid input.
216 DFHACK_EXPORT cuboid clampNew(const cuboid &other) const { return cuboid(*this).clamp(other); }
217
218 /// Clamp this cuboid within map area. Invalid result implies no intersection or invalid input (e.g., no map).
219 /// Can optionally treat cuboid as map blocks instead of tiles.

Callers

nothing calls this directly

Calls 2

cuboidClass · 0.85
clampMethod · 0.80

Tested by

no test coverage detected