summaryrefslogtreecommitdiff
path: root/indra/llmath/m4math.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2010-01-21 11:40:20 -0600
committerDave Parks <davep@lindenlab.com>2010-01-21 11:40:20 -0600
commiteeaa7a7593d839a3c8be784e6b383657cd9b2e13 (patch)
treec9a3d5e0e18a743770401c2003f9ebc300508c1a /indra/llmath/m4math.cpp
parentb96e52b72ab598a57d981c850b5f14b1ac406325 (diff)
parent9c1055ea0e4ef28f1264cbfe690badd8cdb41d26 (diff)
merge
Diffstat (limited to 'indra/llmath/m4math.cpp')
-rw-r--r--indra/llmath/m4math.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/indra/llmath/m4math.cpp b/indra/llmath/m4math.cpp
index 7c7f60154d..3700142982 100644
--- a/indra/llmath/m4math.cpp
+++ b/indra/llmath/m4math.cpp
@@ -785,6 +785,23 @@ bool operator!=(const LLMatrix4 &a, const LLMatrix4 &b)
return FALSE;
}
+bool operator<(const LLMatrix4& a, const LLMatrix4 &b)
+{
+ U32 i, j;
+ for (i = 0; i < NUM_VALUES_IN_MAT4; i++)
+ {
+ for (j = 0; j < NUM_VALUES_IN_MAT4; j++)
+ {
+ if (a.mMatrix[i][j] != b.mMatrix[i][j])
+ {
+ return a.mMatrix[i][j] < b.mMatrix[i][j];
+ }
+ }
+ }
+
+ return false;
+}
+
const LLMatrix4& operator*=(LLMatrix4 &a, F32 k)
{
U32 i, j;