diff options
author | Jacek Antonelli | 2008-08-15 23:45:42 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:42 -0500 |
commit | ce28e056c20bf2723f565bbf464b87781ec248a2 (patch) | |
tree | ef7b0501c4de4b631a916305cbc2a5fdc125e52d /linden/indra/llmath/m4math.h | |
parent | Second Life viewer sources 1.19.1.4b (diff) | |
download | meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.zip meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.gz meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.bz2 meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.xz |
Second Life viewer sources 1.20.2
Diffstat (limited to 'linden/indra/llmath/m4math.h')
-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; |