diff options
author | Jacek Antonelli | 2008-08-15 23:45:02 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:02 -0500 |
commit | d644fc64407dcd14ffcee6a0e9fbe28ee3a4e9bd (patch) | |
tree | 7ed0c2c27d717801238a2e6b5749cd5bf88c3059 /linden/indra/test/v3math_tut.cpp | |
parent | Second Life viewer sources 1.17.3.0 (diff) | |
download | meta-impy-d644fc64407dcd14ffcee6a0e9fbe28ee3a4e9bd.zip meta-impy-d644fc64407dcd14ffcee6a0e9fbe28ee3a4e9bd.tar.gz meta-impy-d644fc64407dcd14ffcee6a0e9fbe28ee3a4e9bd.tar.bz2 meta-impy-d644fc64407dcd14ffcee6a0e9fbe28ee3a4e9bd.tar.xz |
Second Life viewer sources 1.18.0.6
Diffstat (limited to 'linden/indra/test/v3math_tut.cpp')
-rw-r--r-- | linden/indra/test/v3math_tut.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/linden/indra/test/v3math_tut.cpp b/linden/indra/test/v3math_tut.cpp index 36eaca9..4f4e7e0 100644 --- a/linden/indra/test/v3math_tut.cpp +++ b/linden/indra/test/v3math_tut.cpp | |||
@@ -1,11 +1,12 @@ | |||
1 | /** | 1 | /** |
2 | * @file v3math_tut.cpp | 2 | * @file v3math_tut.cpp |
3 | * @author Adroit | 3 | * @author Adroit |
4 | * @date February 2007 | 4 | * @date 2007-02 |
5 | * @brief v3math test cases. | 5 | * @brief v3math test cases. |
6 | * | 6 | * |
7 | * Copyright (c) 2007-2007, Linden Research, Inc. | 7 | * Copyright (c) 2007-2007, Linden Research, Inc. |
8 | * | 8 | * |
9 | * Second Life Viewer Source Code | ||
9 | * The source code in this file ("Source Code") is provided by Linden Lab | 10 | * The source code in this file ("Source Code") is provided by Linden Lab |
10 | * to you under the terms of the GNU General Public License, version 2.0 | 11 | * to you under the terms of the GNU General Public License, version 2.0 |
11 | * ("GPL"), unless you have obtained a separate licensing agreement | 12 | * ("GPL"), unless you have obtained a separate licensing agreement |
@@ -389,6 +390,9 @@ namespace tut | |||
389 | template<> template<> | 390 | template<> template<> |
390 | void v3math_object::test<22>() | 391 | void v3math_object::test<22>() |
391 | { | 392 | { |
393 | #if (LL_RELEASE && LL_LINUX) | ||
394 | skip_fail("Doesn't work under Linux -- FIX ME!"); | ||
395 | #endif | ||
392 | F32 x1 =1.f, y1 = 2.f,z1 = 1.2f, x2 = -2.3f, y2 = 1.11f, z2 = 1234.234f; | 396 | F32 x1 =1.f, y1 = 2.f,z1 = 1.2f, x2 = -2.3f, y2 = 1.11f, z2 = 1234.234f; |
393 | F32 val1,val2,val3; | 397 | F32 val1,val2,val3; |
394 | LLVector3 vec3(x1,y1,z1), vec3a(x2,y2,z2); | 398 | LLVector3 vec3(x1,y1,z1), vec3a(x2,y2,z2); |
@@ -523,6 +527,9 @@ namespace tut | |||
523 | template<> template<> | 527 | template<> template<> |
524 | void v3math_object::test<32>() | 528 | void v3math_object::test<32>() |
525 | { | 529 | { |
530 | #if (LL_RELEASE && LL_LINUX) | ||
531 | skip_fail("Doesn't work under Linux -- FIX ME!"); | ||
532 | #endif | ||
526 | F32 x =12.3524f, y = -342.f,z = 4.126341f; | 533 | F32 x =12.3524f, y = -342.f,z = 4.126341f; |
527 | LLVector3 vec3(x,y,z); | 534 | LLVector3 vec3(x,y,z); |
528 | F32 mag = vec3.normVec(); | 535 | F32 mag = vec3.normVec(); |
@@ -549,6 +556,9 @@ namespace tut | |||
549 | template<> template<> | 556 | template<> template<> |
550 | void v3math_object::test<34>() | 557 | void v3math_object::test<34>() |
551 | { | 558 | { |
559 | #if (LL_RELEASE && LL_LINUX) | ||
560 | skip_fail("Doesn't work under Linux -- FIX ME!"); | ||
561 | #endif | ||
552 | F32 x = 10.f, y = 20.f, z = -15.f; | 562 | F32 x = 10.f, y = 20.f, z = -15.f; |
553 | F32 x1, y1, z1; | 563 | F32 x1, y1, z1; |
554 | F32 lowerxy = 0.f, upperxy = 1.0f, lowerz = -1.0f, upperz = 1.f; | 564 | F32 lowerxy = 0.f, upperxy = 1.0f, lowerz = -1.0f, upperz = 1.f; |
@@ -565,4 +575,4 @@ namespace tut | |||
565 | z1 = U8_to_F32(F32_to_U8(z, lowerz, upperz), lowerz, upperz); | 575 | z1 = U8_to_F32(F32_to_U8(z, lowerz, upperz), lowerz, upperz); |
566 | ensure("2:quantize8: Fail ", (x1 == vec3a.mV[VX]) && (y1 == vec3a.mV[VY])&& (z1 == vec3a.mV[VZ])); | 576 | ensure("2:quantize8: Fail ", (x1 == vec3a.mV[VX]) && (y1 == vec3a.mV[VY])&& (z1 == vec3a.mV[VZ])); |
567 | } | 577 | } |
568 | } \ No newline at end of file | 578 | } |