Three-by-three matrix. More...
#include <mat3d.hpp>
Public Member Functions | |
Mat3D () | |
Constructor for zero matrix. | |
Mat3D (double a11, double a12, double a13, double a21, double a22, double a23, double a31, double a32, double a33) | |
Constructor for matrix with preset elements. | |
~Mat3D () | |
Destructor. | |
double & | operator[] (int i) |
Indexing for matrix. | |
const double & | operator[] (int i) const |
Indexing for constant matrix. | |
double | determinant (void) const |
Return determinant of matrix. | |
Mat3D | inverse (void) const |
Return inverse matrix. | |
Vec3D | operator* (const Vec3D &x) const |
Matrix-vector multiplication. | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Mat3D &m) |
Outputting to stream. |
Three-by-three matrix.
Dense three-by-three matrix. Matrix data in row first order:
| 0 1 2 | A = | 3 4 5 | | 6 7 8 |
Mat3D::Mat3D | ( | ) |
Constructor for zero matrix.
Mat3D::Mat3D | ( | double | a11, |
double | a12, | ||
double | a13, | ||
double | a21, | ||
double | a22, | ||
double | a23, | ||
double | a31, | ||
double | a32, | ||
double | a33 | ||
) |
Constructor for matrix with preset elements.
Mat3D::~Mat3D | ( | ) | [inline] |
Destructor.
double Mat3D::determinant | ( | void | ) | const |
Return determinant of matrix.
Mat3D Mat3D::inverse | ( | void | ) | const |
Return inverse matrix.
double& Mat3D::operator[] | ( | int | i | ) | [inline] |
Indexing for matrix.
const double& Mat3D::operator[] | ( | int | i | ) | const [inline] |
Indexing for constant matrix.
std::ostream& operator<< | ( | std::ostream & | os, |
const Mat3D & | m | ||
) | [friend] |
Outputting to stream.