Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.