comparison mm7_3.cpp @ 1025:8b492d4722d4

Intersection
author Ritor1
date Tue, 21 May 2013 12:42:57 +0600
parents dcdfbb6eede9
children 6afa77761a00
comparison
equal deleted inserted replaced
1024:d353bd3009d9 1025:8b492d4722d4
10427 } 10427 }
10428 10428
10429 //----- (00486089) -------------------------------------------------------- 10429 //----- (00486089) --------------------------------------------------------
10430 void stru148::_486089_normalize_v_18() 10430 void stru148::_486089_normalize_v_18()
10431 { 10431 {
10432 stru148 *v1; // esi@1 10432 //stru148 *v1; // esi@1
10433 double v2; // st7@1 10433 double v2; // st7@1
10434 double v3; // st6@1 10434 double v3; // st6@1
10435 float v4; // ST18_4@2 10435 float v4; // ST18_4@2
10436 double v5; // st5@1 10436 double v5; // st5@1
10437 float v6; // ST14_4@2 10437 float v6; // ST14_4@2
10443 double v12; // ST0C_8@2 10443 double v12; // ST0C_8@2
10444 float v13; // ST14_4@2 10444 float v13; // ST14_4@2
10445 double v14; // ST0C_8@2 10445 double v14; // ST0C_8@2
10446 float v15; // [sp+20h] [bp-8h]@1 10446 float v15; // [sp+20h] [bp-8h]@1
10447 10447
10448 v1 = this; 10448 //v1 = this;
10449 v2 = (double)this->v_18.x; 10449 v2 = (double)this->v_18.x;
10450 v15 = v2; 10450 v15 = v2;
10451 v3 = (double)this->v_18.y; 10451 v3 = (double)this->v_18.y;
10452 v5 = (double)this->v_18.z; 10452 v5 = (double)this->v_18.z;
10453 v7 = sqrt(v5 * v5 + v3 * v3 + v2 * v2); 10453 v7 = sqrt(v5 * v5 + v3 * v3 + v2 * v2);
10454 if ( v7 == 0.0 ) 10454 if ( v7 == 0.0 )
10455 { 10455 {
10456 v1->v_18.x = 0; 10456 this->v_18.x = 0;
10457 v1->v_18.y = 0; 10457 this->v_18.y = 0;
10458 v1->v_18.z = 65536; 10458 this->v_18.z = 65536;
10459 } 10459 }
10460 else 10460 else
10461 { 10461 {
10462 v8 = 1.0 / v7; 10462 v8 = 1.0 / v7;
10463 v9 = v8 * v15 * 65536.0; 10463 v9 = v8 * v15 * 65536.0;
10464 v10 = v9 + 6.7553994e15; 10464 v10 = v9 + 6.7553994e15;
10465 v1->v_18.x = LODWORD(v10); 10465 this->v_18.x = LODWORD(v10);
10466 v4 = v3; 10466 v4 = v3;
10467 v11 = v8 * v4 * 65536.0; 10467 v11 = v8 * v4 * 65536.0;
10468 v12 = v11 + 6.7553994e15; 10468 v12 = v11 + 6.7553994e15;
10469 v1->v_18.y = LODWORD(v12); 10469 this->v_18.y = LODWORD(v12);
10470 v6 = v5; 10470 v6 = v5;
10471 v13 = v8 * v6 * 65536.0; 10471 v13 = v8 * v6 * 65536.0;
10472 v14 = v13 + 6.7553994e15; 10472 v14 = v13 + 6.7553994e15;
10473 v1->v_18.z = LODWORD(v14); 10473 this->v_18.z = LODWORD(v14);
10474 } 10474 }
10475 } 10475 }
10476 10476
10477 //----- (0048616B) -------------------------------------------------------- 10477 //----- (0048616B) --------------------------------------------------------
10478 int stru149::_48616B(int a2, int a3, int a4, int a5, int a6, int a7) 10478 int stru149::_48616B(int a2, int a3, int a4, int a5, int a6, int a7)
14636 } 14636 }
14637 14637
14638 //----- (0044C362) -------------------------------------------------------- 14638 //----- (0044C362) --------------------------------------------------------
14639 void Vec3_int_::Normalize_float() 14639 void Vec3_int_::Normalize_float()
14640 { 14640 {
14641 Vec3_int_ *v1; // esi@1 14641 //Vec3_int_ *v1; // esi@1
14642 double v2; // st6@1 14642 double v2; // st6@1
14643 float v3; // ST20_4@1 14643 float v3; // ST20_4@1
14644 double v4; // st5@1 14644 double v4; // st5@1
14645 float v5; // ST18_4@1 14645 float v5; // ST18_4@1
14646 double v6; // st4@1 14646 double v6; // st4@1
14651 float v11; // ST18_4@1 14651 float v11; // ST18_4@1
14652 double v12; // ST0C_8@1 14652 double v12; // ST0C_8@1
14653 float v13; // ST14_4@1 14653 float v13; // ST14_4@1
14654 double v14; // ST0C_8@1 14654 double v14; // ST0C_8@1
14655 14655
14656 v1 = this; 14656 //v1 = this;
14657 v2 = (double)this->x * 0.000015258789; 14657 v2 = (double)this->x * 0.000015258789;
14658 v3 = v2; 14658 v3 = v2;
14659 v4 = (double)this->y * 0.000015258789; 14659 v4 = (double)this->y * 0.000015258789;
14660 v5 = v4; 14660 v5 = v4;
14661 v6 = (double)this->z * 0.000015258789; 14661 v6 = (double)this->z * 0.000015258789;
14662 v7 = v6; 14662 v7 = v6;
14663 v8 = 1.0 / sqrt(v6 * v6 + v4 * v4 + v2 * v2); 14663 v8 = 1.0 / sqrt(v6 * v6 + v4 * v4 + v2 * v2);
14664 v9 = v8 * v3 * 65536.0; 14664 v9 = v8 * v3 * 65536.0;
14665 v10 = v9 + 6.7553994e15; 14665 v10 = v9 + 6.7553994e15;
14666 v1->x = LODWORD(v10); 14666 this->x = LODWORD(v10);
14667 v11 = v8 * v5 * 65536.0; 14667 v11 = v8 * v5 * 65536.0;
14668 v12 = v11 + 6.7553994e15; 14668 v12 = v11 + 6.7553994e15;
14669 v1->y = LODWORD(v12); 14669 this->y = LODWORD(v12);
14670 v13 = v8 * v7 * 65536.0; 14670 v13 = v8 * v7 * 65536.0;
14671 v14 = v13 + 6.7553994e15; 14671 v14 = v13 + 6.7553994e15;
14672 v1->z = LODWORD(v14); 14672 this->z = LODWORD(v14);
14673 } 14673 }
14674 14674
14675 //----- (00401000) -------------------------------------------------------- 14675 //----- (00401000) --------------------------------------------------------
14676 void __stdcall mm7__vector_constructor(void *a1, int objSize, int numObjs, int (__thiscall *constructor)(int)) 14676 void __stdcall mm7__vector_constructor(void *a1, int objSize, int numObjs, int (__thiscall *constructor)(int))
14677 { 14677 {