From 30425a4d867a4520e329943d6d6f7db36445491c Mon Sep 17 00:00:00 2001 From: David Williams Date: Sun, 5 Dec 2010 12:37:43 +0000 Subject: [PATCH] Added default boundaries for Regions::containsPoint() functions. --- library/PolyVoxCore/include/Region.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/PolyVoxCore/include/Region.h b/library/PolyVoxCore/include/Region.h index fa8b74f2..96ca1837 100644 --- a/library/PolyVoxCore/include/Region.h +++ b/library/PolyVoxCore/include/Region.h @@ -41,8 +41,8 @@ namespace PolyVox void setLowerCorner(const Vector3DInt16& v3dLowerCorner); void setUpperCorner(const Vector3DInt16& v3dUpperCorner); - bool containsPoint(const Vector3DFloat& pos, float boundary) const; - bool containsPoint(const Vector3DInt16& pos, uint8_t boundary) const; + bool containsPoint(const Vector3DFloat& pos, float boundary = 0.0f) const; + bool containsPoint(const Vector3DInt16& pos, uint8_t boundary = 0) const; void cropTo(const Region& other); int16_t depth(void) const; int16_t height(void) const;