5 #ifndef MERCATOR_MATRIX_H 6 #define MERCATOR_MATRIX_H 13 template <
unsigned int COLS,
unsigned int ROWS,
typename FloatType =
float>
17 FloatType m_data[COLS * ROWS];
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.
const FloatType & operator()(unsigned int col, unsigned int row) const
Accessor for the array.
Matrix()=default
Constructor for the Matrix.
A fixed sized array of objects.
FloatType & operator()(unsigned int col, unsigned int row)
Accessor for modifying the array.