Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 29, 2005, 2:38:25 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: Jacobi-reloaded

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/collision_detection/obb_tree_node.cc

    r5431 r5449  
    360360  Vector*              axis = new Vector[3];                //!< the references to the obb axis
    361361
    362   OBBTreeNode::coMat[1][1] = box->covarianceMatrix[0][0]; OBBTreeNode::coMat[1][2] = box->covarianceMatrix[0][1]; OBBTreeNode::coMat[1][3] = box->covarianceMatrix[0][2];
    363   OBBTreeNode::coMat[2][1] = box->covarianceMatrix[1][0]; OBBTreeNode::coMat[2][2] = box->covarianceMatrix[1][1]; OBBTreeNode::coMat[2][3] = box->covarianceMatrix[1][2];
    364   OBBTreeNode::coMat[3][1] = box->covarianceMatrix[2][0]; OBBTreeNode::coMat[3][2] = box->covarianceMatrix[2][1]; OBBTreeNode::coMat[3][3] = box->covarianceMatrix[2][2];
     362  OBBTreeNode::coMat[0][0] = box->covarianceMatrix[0][0];
     363  OBBTreeNode::coMat[0][1] = box->covarianceMatrix[0][1];
     364  OBBTreeNode::coMat[0][2] = box->covarianceMatrix[0][2];
     365
     366  OBBTreeNode::coMat[1][0] = box->covarianceMatrix[1][0];
     367  OBBTreeNode::coMat[1][1] = box->covarianceMatrix[1][1];
     368  OBBTreeNode::coMat[1][2] = box->covarianceMatrix[1][2];
     369
     370  OBBTreeNode::coMat[2][0] = box->covarianceMatrix[2][0];
     371  OBBTreeNode::coMat[2][1] = box->covarianceMatrix[2][1];
     372  OBBTreeNode::coMat[2][2] = box->covarianceMatrix[2][2];
    365373
    366374//   OBBTreeNode::coMat[0][0] = box->covarianceMatrix[0][0];
     
    393401//   }
    394402
    395   axis[0].x = OBBTreeNode::eigvMat[1][1]; axis[0].y = OBBTreeNode::eigvMat[2][1]; axis[0].z = OBBTreeNode::eigvMat[3][1];
    396   axis[1].x = OBBTreeNode::eigvMat[1][2]; axis[1].y = OBBTreeNode::eigvMat[2][2]; axis[1].z = OBBTreeNode::eigvMat[3][2];
    397   axis[2].x = OBBTreeNode::eigvMat[1][3]; axis[2].y = OBBTreeNode::eigvMat[2][3]; axis[2].z = OBBTreeNode::eigvMat[3][3];
     403  axis[0].x = OBBTreeNode::eigvMat[0][0]; axis[0].y = OBBTreeNode::eigvMat[1][0]; axis[0].z = OBBTreeNode::eigvMat[2][0];
     404  axis[1].x = OBBTreeNode::eigvMat[0][1]; axis[1].y = OBBTreeNode::eigvMat[1][1]; axis[1].z = OBBTreeNode::eigvMat[2][1];
     405  axis[2].x = OBBTreeNode::eigvMat[0][2]; axis[2].y = OBBTreeNode::eigvMat[1][2]; axis[2].z = OBBTreeNode::eigvMat[2][2];
    398406  axis[0].normalize();
    399407  axis[1].normalize();
Note: See TracChangeset for help on using the changeset viewer.