karto::Matrix Class Reference
#include <Karto.h>
List of all members.
Detailed Description
Defines a general Matrix class.
Definition at line 2511 of file Karto.h.
Constructor & Destructor Documentation
Constructs a matrix of size rows x columns
Definition at line 2517 of file Karto.h.
virtual karto::Matrix::~Matrix |
( |
|
) |
[inline, virtual] |
Member Function Documentation
void karto::Matrix::Allocate |
( |
|
) |
[inline, private] |
Allocate space for the matrix
Definition at line 2595 of file Karto.h.
void karto::Matrix::Clear |
( |
|
) |
[inline] |
Set all entries to 0
Definition at line 2539 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 2560 of file Karto.h.
kt_int32u karto::Matrix::GetRows |
( |
|
) |
const [inline] |
Gets the number of rows of the matrix
- Returns:
- nubmer of rows
Definition at line 2551 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 2584 of file Karto.h.
Returns a reference to the entry at (row,column)
- Parameters:
-
- Returns:
- reference to entry at (row,column)
Definition at line 2571 of file Karto.h.
void karto::Matrix::RangeCheck |
( |
kt_int32u |
row, |
|
|
kt_int32u |
column | |
|
) |
| | const [inline, private] |
Checks if (row,column) is a valid entry into the matrix
- Parameters:
-
Definition at line 2622 of file Karto.h.
Member Data Documentation
The documentation for this class was generated from the following file: