Implement simple line drawing

This commit is contained in:
Camden Dixie O'Brien
2025-10-13 16:22:10 +01:00
parent 87a305c2e5
commit 7097b7fb57
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