m[1][0] = -s; m[1][1] = c;
}
+void
+copy_mtx2 (GRFMTX_2D to, const GRFMTX_2D from) {
+ for (int r = 0; r < 3; r++)
+ for (int c = 0; c < 3; c++)
+ to[r][c] = from[r][c];
+}
+
void
mult_mtx2 (const GRFMTX_2D m1, const GRFMTX_2D m2, GRFMTX_2D result)
{
temp[row][col] += m1[row][calc] * m2[calc][col];
}
}
-
- for (int r = 0; r < 3; r++)
- for (int col = 0; col < 3; col++)
- result[r][col] = temp[r][col];
+ copy_mtx2 (result, temp);
}
void