Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5667 in orxonox.OLD for trunk/src/lib/math


Ignore:
Timestamp:
Nov 21, 2005, 10:41:48 AM (19 years ago)
Author:
patrick
Message:

trunk/math: rewrite since both worked on the same file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/math/matrix.cc

    r5666 r5667  
    107107  }
    108108
    109   Vector eigVc[3];
     109  //Vector eigVc[3];
    110110  /* eigenvec test */
     111  /*
    111112  for(int i = 0; i < 3; i++)
    112113  {
    113     eigVc[i].x =-1/this->m13*(this->m33 - eigValue[i]) + (this->m32*(-this->m31*this->m32 + this->m12*this->m33 - this->m12*eigValue[i])) /
    114         this->m13*(-this->m13*this->m22 - this->m12*this->m23 + this->m13*eigValue[i]);
    115     eigVc[i].y = -( -this->m13*this->m23 + this->m12*this->m33 - this->m12*eigValue[i]) /
    116         (-this->m31*this->m22 + this->m12*this->m23 + this->m13*eigValue[i]);
     114    eigVc[i].x =-1/this->m13*(this->m33 - eigValue[i]) + (this->m32*(-this->m31*this->m32 + this->m12*this->m33 - this->m12*eigVl[i])) /
     115        this->m13*(-this->m13*this->m22 - this->m12*this->m23 + this->m13*eigVl[i]);
     116    eigVc[i].y = -( -this->m13*this->m23 + this->m12*this->m33 - this->m12*eigVl[i]) /
     117        (-this->m31*this->m22 + this->m12*this->m23 + this->m13*eigVl[i]);
    117118    eigVc[i].z = 1.0f;
    118119
     
    120121    printf("home brewn: %f, %f, %f\n", eigVc[i].x, eigVc[i].y, eigVc[i].z);
    121122
    122   }
     123}*/
    123124
    124125
Note: See TracChangeset for help on using the changeset viewer.