Merge branch 'set_matrix'
This commit is contained in:
commit
a1c582fcff
1
matrix.c
1
matrix.c
@ -39,6 +39,7 @@ void clearMatrix(Matrix *matrix)
|
||||
void setMatrixAt(MatrixType value, Matrix matrix, unsigned int rowIdx, unsigned int colIdx)
|
||||
{
|
||||
|
||||
matrix.data[(rowIdx * matrix.cols) + colIdx] = value; //wir setzen den data-Wert an der Stelle (rowIdx*Spalten + colIdx) auf den Wert von value
|
||||
}
|
||||
|
||||
MatrixType getMatrixAt(const Matrix matrix, unsigned int rowIdx, unsigned int colIdx)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user