Implement simple line drawing
This commit is contained in:
24
maths.h
Normal file
24
maths.h
Normal 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
|
||||
Reference in New Issue
Block a user