Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6450 in orxonox.OLD for branches/collision_detection/src/lib


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

cd: correctness

Location:
branches/collision_detection/src/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/collision_detection/src/lib/collision_detection/cd_engine.cc

    r5882 r6450  
    8383  WorldEntity* entity1 = iterator1->firstElement();
    8484  WorldEntity* entity2 = iterator2->iteratorElement(iterator1);
    85   PRINTF(3)("checking for collisions\n");
     85  PRINTF(5)("checking for collisions\n");
    8686  while( entity1 != NULL)
    8787  {
  • 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.