summaryrefslogtreecommitdiffstats
path: root/math.c
diff options
context:
space:
mode:
Diffstat (limited to 'math.c')
-rw-r--r--math.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/math.c b/math.c
index 51f5c13..6343c96 100644
--- a/math.c
+++ b/math.c
@@ -76,22 +76,22 @@ int VectorEqual(VECTOR v1, VECTOR v2) {
}
MATRIX MatrixIdentity() {
- MATRIX m = {
+ MATRIX m = {.f = {
1.0, 0.0, 0.0, 0.0,
0.0, 1.0, 0.0, 0.0,
0.0, 0.0, 1.0, 0.0,
0.0, 0.0, 0.0, 1.0
- };
+ }};
return m;
}
MATRIX MatrixMul(MATRIX m1, MATRIX m2) {
- MATRIX m = {
+ MATRIX m = {.f = {
0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0
- };
+ }};
short i, j, k;
for(i = 0; i < 4; i++)