summaryrefslogtreecommitdiff
path: root/indra/llmath/m4math.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2010-01-22 22:15:32 -0600
committerDave Parks <davep@lindenlab.com>2010-01-22 22:15:32 -0600
commit22bcd0e0eaeda849fbb1a8ecd78eeee7a219c614 (patch)
tree74109ce28c31f529902f393c5232352cde24396d /indra/llmath/m4math.cpp
parente82743d9d0dc4353f9cb9162076d5b884f13d30e (diff)
parent89f6504a27cd8a92faeba1c39f8afef232ea660f (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;