diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llmath/m4math.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/linden/indra/llmath/m4math.h b/linden/indra/llmath/m4math.h index 7a51eb2..27eb865 100644 --- a/linden/indra/llmath/m4math.h +++ b/linden/indra/llmath/m4math.h | |||
@@ -132,8 +132,8 @@ public: | |||
132 | const LLVector4 &row3); | 132 | const LLVector4 &row3); |
133 | 133 | ||
134 | // various useful matrix functions | 134 | // various useful matrix functions |
135 | const LLMatrix4& identity(); // Load identity matrix | 135 | const LLMatrix4& setIdentity(); // Load identity matrix |
136 | const LLMatrix4& zero(); // Clears matrix to all zeros. | 136 | const LLMatrix4& setZero(); // Clears matrix to all zeros. |
137 | 137 | ||
138 | const LLMatrix4& initRotation(const F32 angle, const F32 x, const F32 y, const F32 z); // Calculate rotation matrix by rotating angle radians about (x, y, z) | 138 | const LLMatrix4& initRotation(const F32 angle, const F32 x, const F32 y, const F32 z); // Calculate rotation matrix by rotating angle radians about (x, y, z) |
139 | const LLMatrix4& initRotation(const F32 angle, const LLVector4 &axis); // Calculate rotation matrix for rotating angle radians about vec | 139 | const LLMatrix4& initRotation(const F32 angle, const LLVector4 &axis); // Calculate rotation matrix for rotating angle radians about vec |
@@ -243,10 +243,10 @@ public: | |||
243 | 243 | ||
244 | inline LLMatrix4::LLMatrix4() | 244 | inline LLMatrix4::LLMatrix4() |
245 | { | 245 | { |
246 | identity(); | 246 | setIdentity(); |
247 | } | 247 | } |
248 | 248 | ||
249 | inline const LLMatrix4& LLMatrix4::identity() | 249 | inline const LLMatrix4& LLMatrix4::setIdentity() |
250 | { | 250 | { |
251 | mMatrix[0][0] = 1.f; | 251 | mMatrix[0][0] = 1.f; |
252 | mMatrix[0][1] = 0.f; | 252 | mMatrix[0][1] = 0.f; |