diff options
Diffstat (limited to 'indra/llmath/llrect.h')
-rw-r--r-- | indra/llmath/llrect.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/llmath/llrect.h b/indra/llmath/llrect.h index 00a1b03335..e7b15dcc58 100644 --- a/indra/llmath/llrect.h +++ b/indra/llmath/llrect.h @@ -215,7 +215,12 @@ public: mLeft = llmin(mLeft, mRight); mBottom = llmin(mBottom, mTop); } - + + bool isNull() const + { + return mLeft == mRight || mBottom == mTop; + } + void unionWith(const LLRectBase &other) { mLeft = llmin(mLeft, other.mLeft); |