diff options
author | Jacek Antonelli | 2008-09-06 18:24:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-06 18:25:07 -0500 |
commit | 798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch) | |
tree | 1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/test/llquaternion_tut.cpp | |
parent | Second Life viewer sources 1.20.15 (diff) | |
download | meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2 meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz |
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/test/llquaternion_tut.cpp')
-rw-r--r-- | linden/indra/test/llquaternion_tut.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/linden/indra/test/llquaternion_tut.cpp b/linden/indra/test/llquaternion_tut.cpp index 5b8a6ef..d560a54 100644 --- a/linden/indra/test/llquaternion_tut.cpp +++ b/linden/indra/test/llquaternion_tut.cpp | |||
@@ -299,7 +299,7 @@ namespace tut | |||
299 | ensure("2. LLQuaternion Operator* failed", (4543086.5f == result.mQ[0]) && | 299 | ensure("2. LLQuaternion Operator* failed", (4543086.5f == result.mQ[0]) && |
300 | (8567578.0f == result.mQ[1]) && | 300 | (8567578.0f == result.mQ[1]) && |
301 | (3967591.25f == result.mQ[2]) && | 301 | (3967591.25f == result.mQ[2]) && |
302 | (-2047783.25f == result.mQ[3])); | 302 | is_approx_equal(-2047783.25f, result.mQ[3])); |
303 | 303 | ||
304 | //inline LLQuaternion operator+(const LLQuaternion &a, const LLQuaternion &b)fn. | 304 | //inline LLQuaternion operator+(const LLQuaternion &a, const LLQuaternion &b)fn. |
305 | result = quat1 + quat2; | 305 | result = quat1 + quat2; |
@@ -343,11 +343,11 @@ namespace tut | |||
343 | LLVector4 result = vect * quat; | 343 | LLVector4 result = vect * quat; |
344 | ensure( | 344 | ensure( |
345 | "1. LLVector4 operator*(const LLVector4 &a, const LLQuaternion &rot) failed", | 345 | "1. LLVector4 operator*(const LLVector4 &a, const LLQuaternion &rot) failed", |
346 | (39928406016.0f == result.mV[0]) && | 346 | is_approx_equal(39928406016.0f, result.mV[0]) && |
347 | // gcc on x86 actually gives us more precision than we were expecting, verified with -ffloat-store - we forgive this | 347 | // gcc on x86 actually gives us more precision than we were expecting, verified with -ffloat-store - we forgive this |
348 | (1457802240.0f >= result.mV[1]) && // gcc+x86+linux | 348 | (1457802240.0f >= result.mV[1]) && // gcc+x86+linux |
349 | (1457801728.0f <= result.mV[1]) && // elsewhere | 349 | (1457800960.0f <= result.mV[1]) && // elsewhere |
350 | (200580612096.0f == result.mV[2]) && | 350 | is_approx_equal(200580612096.0f, result.mV[2]) && |
351 | (75.099998f == result.mV[3])); | 351 | (75.099998f == result.mV[3])); |
352 | 352 | ||
353 | LLVector4 vect1(22.0f, 45.0f, 40.0f, 78.1f); | 353 | LLVector4 vect1(22.0f, 45.0f, 40.0f, 78.1f); |