Matrix<D, N>: a D x D matrix of numbers of type N.
More...
#include <Matrix.h>
List of all members.
Public Member Functions |
| Matrix () |
| default constructor: creates a unit DxD Matrix
|
| Matrix (unsigned ii, unsigned jj, N theta) |
| creates a rotation about axes ii and jj of angle theta
|
N & | operator() (unsigned i, unsigned j) |
| Access operator.
|
const N & | operator() (unsigned i, unsigned j) const |
| Constant access operator.
|
Matrix< D, N > | operator*= (const Matrix< D, N > &) |
| In-place Matrix multiplication.
|
Matrix< D, N > | operator- () |
| Negate every single element.
|
void | scale (const Vector< D, N > &) |
| Scale the Matrix separately for each dimension.
|
std::string | toString () const |
| String output, mainly for debugging purposes.
|
| operator std::string () const |
| Alias for toString()
|
Private Attributes |
N | _M [D][D] |
| A static two-dimensional array storing the components.
|
Detailed Description
template<unsigned D, typename N = double>
class VecMath::Matrix< D, N >
Matrix<D, N>: a D x D matrix of numbers of type N.
- Template Parameters:
-
D | dimension of the matrix |
N | numerical type of the matrix elements |
- Author:
- Lene Preuss <lene.preuss@gmail.com>
Constructor & Destructor Documentation
template<unsigned D, typename N>
creates a rotation about axes ii
and jj
of angle theta
- Parameters:
-
ii | first (row) index |
jj | second (column) index |
theta | rotation angle |
References cos(), and sin().
Member Function Documentation
template<unsigned D, typename N >
const N & VecMath::Matrix< D, N >::operator() |
( |
unsigned |
i, |
|
|
unsigned |
j |
|
) |
| const |
Constant access operator.
- Parameters:
-
- Returns:
-
template<unsigned D, typename N >
Access operator.
- Parameters:
-
- Returns:
-
template<unsigned D, typename N>
template<unsigned D, typename N >
template<unsigned D, typename N>
The documentation for this class was generated from the following files: