Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 9, 2006, 2:14:00 PM (19 years ago)
Author:
bensch
Message:

cd: correctness

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/collision_detection/src/lib/math/matrix.cc

    r5677 r6450  
    8383}
    8484
     85
     86
     87
    8588void Matrix::getEigenVectors(Vector& eigVc1, Vector& eigVc2, Vector& eigVc3) const
    8689{
     
    110113
    111114    eigVc3 = eigVc1.cross(eigVc2);
     115
     116    eigVc2 = eigVc3.cross(eigVc1);
    112117  }
    113118  else if (eigenValuesCount == 1)
     
    120125  eigVc2.normalize();
    121126  eigVc3.normalize();
     127
     128  if (!(eigVc1.cross(eigVc3) == eigVc2))
     129  {
     130    eigVc3.cross(eigVc1).debug();
     131    eigVc2.debug();
     132  }
     133  printf("ok\n");
    122134}
    123135
Note: See TracChangeset for help on using the changeset viewer.