| 55 | } |
| 56 | |
| 57 | void g3_TransformMult(float res[4][4], float a[4][4], float b[4][4]) { |
| 58 | float temp[4][4]; |
| 59 | |
| 60 | int x, y; |
| 61 | for (y = 0; y < 4; ++y) { |
| 62 | for (x = 0; x < 4; ++x) { |
| 63 | temp[y][x] = (a[y][0] * b[0][x]) + (a[y][1] * b[1][x]) + (a[y][2] * b[2][x]) + (a[y][3] * b[3][x]); |
| 64 | } |
| 65 | } |
| 66 | memcpy(res, temp, 16 * sizeof(float)); |
| 67 | } |
| 68 | |
| 69 | void g3_TransformTrans(float res[4][4], float t[4][4]) { |
| 70 | float temp[4][4]; |
no outgoing calls
no test coverage detected