#include <Karto.h>
Defines a general Matrix class.
Definition at line 2731 of file Karto.h.
◆ Matrix()
Constructs a matrix of size rows x columns
Definition at line 2737 of file Karto.h.
◆ ~Matrix()
virtual karto::Matrix::~Matrix |
( |
| ) |
|
|
inlinevirtual |
◆ Allocate()
void karto::Matrix::Allocate |
( |
| ) |
|
|
inlineprivate |
Allocate space for the matrix
Definition at line 2815 of file Karto.h.
◆ Clear()
void karto::Matrix::Clear |
( |
| ) |
|
|
inline |
Set all entries to 0
Definition at line 2759 of file Karto.h.
◆ GetColumns()
kt_int32u karto::Matrix::GetColumns |
( |
| ) |
const |
|
inline |
Gets the number of columns of the matrix
- Returns
- nubmer of columns
Definition at line 2780 of file Karto.h.
◆ GetRows()
Gets the number of rows of the matrix
- Returns
- nubmer of rows
Definition at line 2771 of file Karto.h.
◆ operator()() [1/2]
Returns a reference to the entry at (row,column)
- Parameters
-
- Returns
- reference to entry at (row,column)
Definition at line 2791 of file Karto.h.
◆ operator()() [2/2]
Returns a const reference to the entry at (row,column)
- Parameters
-
- Returns
- const reference to entry at (row,column)
Definition at line 2804 of file Karto.h.
◆ RangeCheck()
Checks if (row,column) is a valid entry into the matrix
- Parameters
-
Definition at line 2842 of file Karto.h.
◆ m_Columns
◆ m_pData
◆ m_Rows
The documentation for this class was generated from the following file: