feat: add mat4 init functions

This commit is contained in:
2025-07-04 06:41:15 +02:00
parent 8b14924da3
commit bdd4bd3e40
6 changed files with 96 additions and 38 deletions

View File

@@ -1,7 +1,13 @@
#include <stdio.h>
#include "math/vec4.h"
#include "math/mat4.h"
int main(void)
{
float arr[16] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16};
Mat4f_t mat1 = mat4f_from_array(arr);
Mat4f_t mat2 = mat4f_scalar(1);
Mat4f_t mat3 = mat4f_zero();
Mat4f_t mat4 = mat4f_identity();
printf("%f", arr[1]);
return 0;
}