Implement simple line drawing

This commit is contained in:
2025-10-18 17:43:22 +01:00
parent fad9a8935f
commit 0deaf4435c
6 changed files with 98 additions and 16 deletions

24
maths.h Normal file
View File

@@ -0,0 +1,24 @@
#ifndef MATHS_H
#define MATHS_H
typedef struct {
float x;
float y;
} vec2_t;
typedef struct {
float x;
float y;
float z;
} vec3_t;
typedef struct {
vec3_t x;
vec3_t y;
vec3_t z;
} mat3_t;
vec3_t vec2_extend(vec2_t v);
vec3_t mat3_mul_vec3(mat3_t m, vec3_t v);
#endif