3x3 matrix class meant for compute-intensive use
#include <Mesh/Geometry/matrix3x3.h>
|
| Matrix3x3 () |
|
| Matrix3x3 (const Matrix3x3 &m) |
|
| Matrix3x3 (double d00, double d01, double d02, double d10, double d11, double d12, double d20, double d21, double d22) |
|
double | determinant () const |
|
double & | operator() (int row, int column) |
|
double | operator() (int row, int column) const |
|
Matrix3x3 & | operator*= (double f) |
|
Matrix3x3 & | operator+= (const Matrix3x3 &m) |
|
Matrix3x3 & | operator-= (const Matrix3x3 &m) |
|
Matrix3x3 & | operator/= (double f) |
|
Matrix3x3 & | operator= (const Matrix3x3 &m) |
|
double | trace () const |
|
Matrix3x3 | transpose () const |
|
◆ Matrix3x3() [1/3]
The default constructor returns a matrix with all its entries set to zero.
◆ Matrix3x3() [2/3]
Matrix3x3 |
( |
double |
d00, |
|
|
double |
d01, |
|
|
double |
d02, |
|
|
double |
d10, |
|
|
double |
d11, |
|
|
double |
d12, |
|
|
double |
d20, |
|
|
double |
d21, |
|
|
double |
d22 |
|
) |
| |
|
inline |
Set each entry of the matrix individually.
◆ Matrix3x3() [3/3]
- Parameters
-
m | The matrix to construct a copy of. |
◆ determinant()
double determinant |
( |
| ) |
const |
|
inline |
- Returns
- The determinant of the matrix.
◆ identity()
- Returns
- The identity matrix (diagonals set to 1, everything else is 0).
◆ operator()() [1/2]
double & operator() |
( |
int |
row, |
|
|
int |
column |
|
) |
| |
|
inline |
- Parameters
-
row | The row of the matrix. |
column | The column of the matrix. |
- Returns
- The element at the specified row and column.
◆ operator()() [2/2]
double operator() |
( |
int |
row, |
|
|
int |
column |
|
) |
| const |
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
◆ operator*=()
In-place multiplication by a scalar.
◆ operator+=()
◆ operator-=()
◆ operator/=()
In-place division by a scalar.
◆ operator=()
- Parameters
-
m | The matrix to assign to this one. |
◆ trace()
- Returns
- The trace of the matrix.
◆ transpose()
- Returns
- The transpose of the matrix.
◆ innerProduct()
- Returns
- The inner product of the two matrices.
◆ operator!=()
◆ operator+()
- Returns
- The element-wise addition of the two matrices ( mA + mB ).
◆ operator-() [1/2]
- Returns
- The negative of the matrix m (ie every element of the returned matrix is the negative of the corresponding element of m ).
◆ operator-() [2/2]
- Returns
- The element-wise subtraction of the two matrices ( mA - mB ).
◆ operator==()
◆ tensorProduct()
- Returns
- The tensor product of the two matrices.