From cb992b7c348e25a221e52153de38895844f76115 Mon Sep 17 00:00:00 2001 From: David Williams Date: Sat, 24 Nov 2012 10:20:20 +0100 Subject: [PATCH] Added getter methods for lower corner. (Trivial commit - part of Git testing) --- library/PolyVoxCore/include/PolyVoxCore/Region.h | 4 ++++ library/PolyVoxCore/source/Region.cpp | 15 +++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/library/PolyVoxCore/include/PolyVoxCore/Region.h b/library/PolyVoxCore/include/PolyVoxCore/Region.h index 1d9f162e..45b86d60 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/Region.h +++ b/library/PolyVoxCore/include/PolyVoxCore/Region.h @@ -65,6 +65,10 @@ namespace PolyVox /// Inequality Operator. bool operator!=(const Region& rhs) const; + int32_t getLowerX(void) const; + int32_t getLowerY(void) const; + int32_t getLowerZ(void) const; + Vector3DInt32 getLowerCorner(void) const; Vector3DInt32 getUpperCorner(void) const; diff --git a/library/PolyVoxCore/source/Region.cpp b/library/PolyVoxCore/source/Region.cpp index c738740b..834a4f77 100644 --- a/library/PolyVoxCore/source/Region.cpp +++ b/library/PolyVoxCore/source/Region.cpp @@ -92,6 +92,21 @@ namespace PolyVox return !(*this == rhs); } + int32_t Region::getLowerX(void) const + { + return m_iLowerX; + } + + int32_t Region::getLowerY(void) const + { + return m_iLowerY; + } + + int32_t Region::getLowerZ(void) const + { + return m_iLowerZ; + } + Vector3DInt32 Region::getLowerCorner(void) const { return Vector3DInt32(m_iLowerX, m_iLowerY, m_iLowerZ);