convenience wrapper over apf::Matrix<3,3> More...
Public Member Functions | |
Matrix3x3 () | |
required default constructor | |
Matrix3x3 (double a11, double a12, double a13, double a21, double a22, double a23, double a31, double a32, double a33) | |
component-wise constructor | |
Matrix3x3 (Matrix< 3, 3 > const &other) | |
constructor from base type | |
void | toArray (double(*array)[3]) const |
write matrix to an array |
convenience wrapper over apf::Matrix<3,3>
like apf::Vector3, this provides component-wise initialization
Definition at line 178 of file apfMatrix.h.
apf::Matrix3x3::Matrix3x3 | ( | double | a11, | |
double | a12, | |||
double | a13, | |||
double | a21, | |||
double | a22, | |||
double | a23, | |||
double | a31, | |||
double | a32, | |||
double | a33 | |||
) | [inline] |
component-wise constructor
this is useful for hardcoded matrices
Definition at line 185 of file apfMatrix.h.
{ (*this)[0] = Vector3(a11,a12,a13); (*this)[1] = Vector3(a21,a22,a23); (*this)[2] = Vector3(a31,a32,a33); }
void apf::Matrix3x3::toArray | ( | double(*) | array[3] | ) | const [inline] |
write matrix to an array
Definition at line 199 of file apfMatrix.h.
{ for (std::size_t i=0; i < 3; ++i) for (std::size_t j=0; j < 3; ++j) array[i][j] = (*this)[i][j]; }