5 #ifndef MERCATOR_MATRIX_H 6 #define MERCATOR_MATRIX_H 13 template <
unsigned int COLS,
unsigned int ROWS,
typename FloatType =
float>
23 FloatType &
operator()(
unsigned int col,
unsigned int row) {
24 return m_data[row * COLS + col];
28 const FloatType &
operator()(
unsigned int col,
unsigned int row)
const {
29 return m_data[row * COLS + col];
40 #endif // MERCATOR_MATRIX_H FloatType & operator[](unsigned int idx)
Accessor for accessing the array as one dimensional.
Definition: Matrix.h:33
Matrix()
Constructor for the Matrix.
Definition: Matrix.h:20
A fixed sized array of objects.
Definition: Matrix.h:14
FloatType & operator()(unsigned int col, unsigned int row)
Accessor for modifying the array.
Definition: Matrix.h:23
FloatType m_data[COLS *ROWS]
Storage for the array of objects.
Definition: Matrix.h:17
const FloatType & operator()(unsigned int col, unsigned int row) const
Accessor for the array.
Definition: Matrix.h:28