feat(matrix3): Initialize few basic functions

This commit is contained in:
2025-03-30 16:11:23 +02:00
parent e39f9c7892
commit 89c619f83e
3 changed files with 110 additions and 3 deletions

19
include/math/matrix3.h Normal file
View File

@@ -0,0 +1,19 @@
#ifndef MATRIX_H
#define MATRIX_H
typedef struct {
float m[9];
} Mat3;
Mat3 mat3(float arr[9]);
Mat3 mat3Zro();
Mat3 mat3Ity();
Mat3 mat3Add(Mat3 m1, Mat3 m2);
Mat3 mat3Sub(Mat3 m1, Mat3 m2);
Mat3 mat3Scl(Mat3 m, float scalar);
Mat3 mat3Mul(Mat3 m1, Mat3 m2);
Mat3 mat3Tpo(Mat3 m);
float mat3Det(Mat3 m);
#endif // MATRIX_H