invoke
Create a new mutable matrix that is initialized from the given matrix. Unlike the Matrix
equivalent this version is guaranteed to create a new matrix, and it does not invoke [copyOf]
.
Return
A new MutableMatrix
implementation that contains the same content as the original.
Parameters
The matrix to create a copy of
A simple array-like mutable matrix that contains the given initial value.
Parameters
The width of the matrix
The height of the matrix
The inititial value for each cell in the matrix.
A simple array-like mutable matrix that contains the values given by the function. The values are assigned at construction.
Return
The resulting matrix (storing all values)
Parameters
The width of the matrix
The height of the matrix
Function that allows setting each cell in the matrix. Its parameters are the x and y coordinates.