#include <Karto.h>
Defines a general Matrix class.
Definition at line 2628 of file Karto.h.
Constructs a matrix of size rows x columns
Definition at line 2634 of file Karto.h.
virtual karto::Matrix::~Matrix |
( |
| ) |
|
|
inlinevirtual |
void karto::Matrix::Allocate |
( |
| ) |
|
|
inlineprivate |
Allocate space for the matrix
Definition at line 2712 of file Karto.h.
void karto::Matrix::Clear |
( |
| ) |
|
|
inline |
Set all entries to 0
Definition at line 2656 of file Karto.h.
kt_int32u karto::Matrix::GetColumns |
( |
| ) |
const |
|
inline |
Gets the number of columns of the matrix
- Returns
- nubmer of columns
Definition at line 2677 of file Karto.h.
Gets the number of rows of the matrix
- Returns
- nubmer of rows
Definition at line 2668 of file Karto.h.
Returns a reference to the entry at (row,column)
- Parameters
-
- Returns
- reference to entry at (row,column)
Definition at line 2688 of file Karto.h.
Returns a const reference to the entry at (row,column)
- Parameters
-
- Returns
- const reference to entry at (row,column)
Definition at line 2701 of file Karto.h.
Checks if (row,column) is a valid entry into the matrix
- Parameters
-
Definition at line 2739 of file Karto.h.
The documentation for this class was generated from the following file: