diff --git a/library/PolyVoxCore/include/PolyVoxCore/Region.h b/library/PolyVoxCore/include/PolyVoxCore/Region.h index 55c51ee4..aa7681fa 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/Region.h +++ b/library/PolyVoxCore/include/PolyVoxCore/Region.h @@ -133,21 +133,21 @@ namespace PolyVox /// Tests whether the given point is contained in this Region. bool containsPoint(const Vector3DFloat& pos, float boundary = 0.0f) const; /// Tests whether the given point is contained in this Region. - bool containsPoint(int32_t iX, int32_t iY, int32_t iZ, uint8_t boundary = 0) const; + bool containsPoint(int32_t iX, int32_t iY, int32_t iZ, int8_t boundary = 0) const; /// Tests whether the given point is contained in this Region. - bool containsPoint(const Vector3DInt32& pos, uint8_t boundary = 0) const; + bool containsPoint(const Vector3DInt32& pos, int8_t boundary = 0) const; /// Tests whether the given position is contained in the 'x' range of this Region. bool containsPointInX(float pos, float boundary = 0.0f) const; /// Tests whether the given position is contained in the 'x' range of this Region. - bool containsPointInX(int32_t pos, uint8_t boundary = 0) const; + bool containsPointInX(int32_t pos, int8_t boundary = 0) const; /// Tests whether the given position is contained in the 'y' range of this Region. bool containsPointInY(float pos, float boundary = 0.0f) const; /// Tests whether the given position is contained in the 'y' range of this Region. - bool containsPointInY(int32_t pos, uint8_t boundary = 0) const; + bool containsPointInY(int32_t pos, int8_t boundary = 0) const; /// Tests whether the given position is contained in the 'z' range of this Region. bool containsPointInZ(float pos, float boundary = 0.0f) const; /// Tests whether the given position is contained in the 'z' range of this Region. - bool containsPointInZ(int32_t pos, uint8_t boundary = 0) const; + bool containsPointInZ(int32_t pos, int8_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); diff --git a/library/PolyVoxCore/source/Region.cpp b/library/PolyVoxCore/source/Region.cpp index 143a537a..dee56bb3 100644 --- a/library/PolyVoxCore/source/Region.cpp +++ b/library/PolyVoxCore/source/Region.cpp @@ -199,7 +199,7 @@ namespace PolyVox * \param iZ The 'z' position of the point to test. * \param boundary The desired boundary value. */ - bool Region::containsPoint(int32_t iX, int32_t iY, int32_t iZ, uint8_t boundary) const + bool Region::containsPoint(int32_t iX, int32_t iY, int32_t iZ, int8_t boundary) const { return (iX <= m_iUpperX - boundary) && (iY <= m_iUpperY - boundary) @@ -216,7 +216,7 @@ namespace PolyVox * \param pos The position to test. * \param boundary The desired boundary value. */ - bool Region::containsPoint(const Vector3DInt32& pos, uint8_t boundary) const + bool Region::containsPoint(const Vector3DInt32& pos, int8_t boundary) const { return containsPoint(pos.getX(), pos.getY(), pos.getZ(), boundary); } @@ -241,7 +241,7 @@ namespace PolyVox * \param pos The position to test. * \param boundary The desired boundary value. */ - bool Region::containsPointInX(int32_t pos, uint8_t boundary) const + bool Region::containsPointInX(int32_t pos, int8_t boundary) const { return (pos <= m_iUpperX - boundary) && (pos >= m_iLowerX + boundary); @@ -267,7 +267,7 @@ namespace PolyVox * \param pos The position to test. * \param boundary The desired boundary value. */ - bool Region::containsPointInY(int32_t pos, uint8_t boundary) const + bool Region::containsPointInY(int32_t pos, int8_t boundary) const { return (pos <= m_iUpperY - boundary) && (pos >= m_iLowerY + boundary); @@ -293,7 +293,7 @@ namespace PolyVox * \param pos The position to test. * \param boundary The desired boundary value. */ - bool Region::containsPointInZ(int32_t pos, uint8_t boundary) const + bool Region::containsPointInZ(int32_t pos, int8_t boundary) const { return (pos <= m_iUpperZ - boundary) && (pos >= m_iLowerZ + boundary);