MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / g3_TransformMult

Function g3_TransformMult

renderer/HardwareTransforms.cpp:57–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57void 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
69void g3_TransformTrans(float res[4][4], float t[4][4]) {
70 float temp[4][4];

Callers 1

g3_UpdateFullTransformFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected