Matrix
Matrix

Represents a Matrix of values (varying size)

valuesType
ValueType valuesType() const

Gets how each value within the Matrix is stored

Returns

A ValueType representing how each value in the Matrix is stored

rows
uint16 rows() const

Gets the number of rows in the Matrix

Returns

The number of rows in the Matrix

columns
uint16 columns() const

Gets the number of columns in the Matrix

Returns

The number of columns in the Matrix

as_floatAt
float as_floatAt(
uint16 row,
uint16 column
) const

Gets the value stored at the given row and column (0-based), as a 4-byte float

Parameters
row
uint16

The 0-based row index of which to get the value

column
uint16

The 0-based column index of which to get the value

Returns

The value stored at the given row and column, as a float

Exceptions
as_uint16At
uint16 as_uint16At(
uint16 row,
uint16 column
) const

Gets the value stored at the given row and column (0-based), as a 2-byte unsigned integer

Parameters
row
uint16

The 0-based row index of which to get the value

column
uint16

The 0-based column index of which to get the value

Returns

The value stored at the given row and column, as a 2-byte unsigned integer

Exceptions
as_uint8At
uint8 as_uint8At(
uint16 row,
uint16 column
) const

Gets the value stored at the given row and column (0-based), as a 1-byte uint8

Parameters
row
uint16

The 0-based row index of which to get the value

column
uint16

The 0-based column index of which to get the value

Returns

The value stored at the given row and column, as a 1-byte uint8

Exceptions
str
std::string str() const

Creates a string from the Matrix

Returns

A string representing the entire Matrix object (ex. "[[0,0.1,0.2],[1,1.1,1.2],[2,2.1,2.2]]")