3x3 Matrix class
More...
#include <matrix3.h>
List of all members.
Detailed Description
3x3 Matrix class
Definition at line 393 of file matrix3.h.
Constructor & Destructor Documentation
Constructor Initialising to Identity Matrix.
Definition at line 399 of file matrix3.h.
Copy Constructor.
- Parameters:
-
Definition at line 406 of file matrix3.h.
Member Function Documentation
Determinant.
- Returns:
- Determinant
Definition at line 454 of file matrix3.h.
Set matrix to identity.
Definition at line 421 of file matrix3.h.
Invert Matrix.
- Returns:
- Inverted Matrix
Definition at line 462 of file matrix3.h.
double& Matrix3::operator() |
( |
int |
r, |
|
|
int |
c |
|
) |
| [inline] |
Element Access.
- Parameters:
-
- Returns:
- element value
Definition at line 448 of file matrix3.h.
Matrix Multiplication.
- Parameters:
-
m | Matrix to be multiplied with |
- Returns:
- Result Matrix
Definition at line 486 of file matrix3.h.
Matrix Vector multiplication.
- Parameters:
-
v | Vector to be multiplied with |
- Returns:
- Result Vector
Definition at line 497 of file matrix3.h.
Matrix3 Matrix3::operator* |
( |
double |
v | ) |
[inline] |
Scalar matrix multiplication.
- Parameters:
-
v | Scalar value to be multiplied with |
- Returns:
- Result Matrix
Definition at line 507 of file matrix3.h.
Matrix3& Matrix3::operator*= |
( |
double |
v | ) |
[inline] |
Scalar matrix multiplication and output into itself.
- Parameters:
-
v | Scalar value to be multiplied with |
- Returns:
- Result Matrix
Definition at line 526 of file matrix3.h.
Matrix Addition and output into itself.
- Parameters:
-
- Returns:
- Result Matrix
Definition at line 535 of file matrix3.h.
Matrix3& Matrix3::operator+= |
( |
double |
v | ) |
[inline] |
Add scalar to every matrix element and output into itself.
- Parameters:
-
v | Scalar value to be added |
- Returns:
- Result Matrix
Definition at line 544 of file matrix3.h.
Copy Matrix values from new matrix.
- Parameters:
-
Definition at line 414 of file matrix3.h.
Matrix3& Matrix3::operator= |
( |
double |
v | ) |
[inline] |
Set all Matrix Elements to scalar value.
- Parameters:
-
v | Scalar value to be set to |
- Returns:
- Result Matrix
Definition at line 517 of file matrix3.h.
Vector3& Matrix3::operator[] |
( |
int |
idx | ) |
[inline] |
Row Element Access.
- Parameters:
-
- Returns:
- row as three dimensional vector
Definition at line 431 of file matrix3.h.
Vector3 Matrix3::operator[] |
( |
int |
idx | ) |
const [inline] |
Row Element Access.
- Parameters:
-
- Returns:
- row as three dimensional vector
Definition at line 439 of file matrix3.h.
Extract 2x2 submatrix.
- Parameters:
-
- Returns:
- 2x2 matrix
Definition at line 555 of file matrix3.h.
Friends And Related Function Documentation
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const Matrix3 & |
m |
|
) |
| [friend] |
Print out matrix.
- Parameters:
-
os | output stream |
m | Matrix to be printed |
- Returns:
- Matrix printed to output stream
Definition at line 570 of file matrix3.h.
Member Data Documentation
Storage for 3 x 3 Matrix.
Definition at line 396 of file matrix3.h.
The documentation for this class was generated from the following file: