Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5694 in orxonox.OLD for trunk


Ignore:
Timestamp:
Nov 22, 2005, 12:55:02 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: new Matrix Constructor to create a Matrix out of a [3][3]-array

Location:
trunk/src/lib
Files:
2 edited

Legend:

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

    r5693 r5694  
    428428  Vector*              axis = new Vector[3];                //!< the references to the obb axis
    429429
    430   Matrix covMat(  box->covarianceMatrix[0][0], box->covarianceMatrix[0][1], box->covarianceMatrix[0][2],
    431                   box->covarianceMatrix[1][0], box->covarianceMatrix[1][1], box->covarianceMatrix[1][2],
    432                   box->covarianceMatrix[2][0], box->covarianceMatrix[2][1], box->covarianceMatrix[2][2] );
     430  Matrix covMat(  box->covarianceMatrix  );
    433431  covMat.getEigenVectors(axis[0], axis[1], axis[2] );
    434432
  • trunk/src/lib/math/matrix.h

    r5692 r5694  
    2222      this->m31 = m31; this->m32 = m32; this->m33 = m33;
    2323    };
    24     Matrix(const float m[9]) {};
     24    Matrix(const float m[3][3]) {
     25      this->m11 = m[0][0]; this->m12 = m[0][1]; this->m13 = m[0][2];
     26      this->m21 = m[1][0]; this->m22 = m[1][1]; this->m23 = m[1][2];
     27      this->m31 = m[2][0]; this->m32 = m[2][1]; this->m33 = m[2][2];
     28    };
    2529
    2630    Matrix operator+ (const Matrix& m) const {
Note: See TracChangeset for help on using the changeset viewer.