Added function to check whether one region is inside of another.

This commit is contained in:
Daviw Williams
2013-05-27 14:01:55 +02:00
parent 61dd59c9bc
commit 869f5f6c49
2 changed files with 20 additions and 0 deletions

View File

@ -149,6 +149,9 @@ namespace PolyVox
/// Tests whether the given position is contained in the 'z' range of this Region.
bool containsPointInZ(int32_t pos, uint8_t boundary = 0) const;
/// Tests whether the given Region is contained in this Region.
bool containsRegion(const Region& reg, uint8_t boundary = 0) const;
/// Enlarges the Region so that it contains the specified position.
void accumulate(int32_t iX, int32_t iY, int32_t iZ);
/// Enlarges the Region so that it contains the specified position.