MA2
This commit is contained in:
parent
9c53700d01
commit
82f7af17c3
@ -106,7 +106,7 @@ MatTyp getEntryAt(const Matrix ma, unsigned int xPos, unsigned int yPos) {
|
|||||||
\*--------------------------------------------------------------------*/
|
\*--------------------------------------------------------------------*/
|
||||||
Bool setEntryAt(Matrix ma, unsigned int xPos, unsigned int yPos, MatTyp value) {
|
Bool setEntryAt(Matrix ma, unsigned int xPos, unsigned int yPos, MatTyp value) {
|
||||||
if (xPos >= ma.spalten || yPos >= ma.zeilen) return FALSE;
|
if (xPos >= ma.spalten || yPos >= ma.zeilen) return FALSE;
|
||||||
ma.mElement[yPos * ma.spalten + xPos] = value;
|
ma.mElement[yPos * ma.spalten + xPos] = value;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user