aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmath/llrect.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llmath/llrect.h')
-rw-r--r--linden/indra/llmath/llrect.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/linden/indra/llmath/llrect.h b/linden/indra/llmath/llrect.h
index 214d552..76b5a27 100644
--- a/linden/indra/llmath/llrect.h
+++ b/linden/indra/llmath/llrect.h
@@ -12,12 +12,12 @@
12 * ("GPL"), unless you have obtained a separate licensing agreement 12 * ("GPL"), unless you have obtained a separate licensing agreement
13 * ("Other License"), formally executed by you and Linden Lab. Terms of 13 * ("Other License"), formally executed by you and Linden Lab. Terms of
14 * the GPL can be found in doc/GPL-license.txt in this distribution, or 14 * the GPL can be found in doc/GPL-license.txt in this distribution, or
15 * online at http://secondlife.com/developers/opensource/gplv2 15 * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
16 * 16 *
17 * There are special exceptions to the terms and conditions of the GPL as 17 * There are special exceptions to the terms and conditions of the GPL as
18 * it is applied to this Source Code. View the full text of the exception 18 * it is applied to this Source Code. View the full text of the exception
19 * in the file doc/FLOSS-exception.txt in this software distribution, or 19 * in the file doc/FLOSS-exception.txt in this software distribution, or
20 * online at http://secondlife.com/developers/opensource/flossexception 20 * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception
21 * 21 *
22 * By copying, modifying or distributing this software, you acknowledge 22 * By copying, modifying or distributing this software, you acknowledge
23 * that you have read and understood your obligations described above, 23 * that you have read and understood your obligations described above,
@@ -215,7 +215,12 @@ public:
215 mLeft = llmin(mLeft, mRight); 215 mLeft = llmin(mLeft, mRight);
216 mBottom = llmin(mBottom, mTop); 216 mBottom = llmin(mBottom, mTop);
217 } 217 }
218 218
219 bool isNull() const
220 {
221 return mLeft == mRight || mBottom == mTop;
222 }
223
219 void unionWith(const LLRectBase &other) 224 void unionWith(const LLRectBase &other)
220 { 225 {
221 mLeft = llmin(mLeft, other.mLeft); 226 mLeft = llmin(mLeft, other.mLeft);