diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/vector.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/vector.h b/include/vector.h index 5b0d2de..fe6c563 100644 --- a/include/vector.h +++ b/include/vector.h @@ -1,9 +1,9 @@ #pragma once #include "vector.h" -#include <stdlib.h> -typedef struct vector_t vector_t; +typedef struct { double x, y, z; } Vec3; -vector_t* vector_new(void); -void vector_ctr(vector_t* obj); -void vector_dtr(vector_t* obj); +static inline Vec3 vec3_add(Vec3 a, Vec3 b); +static inline Vec3 vec3_sub(Vec3 a, Vec3 b); +static inline Vec3 vec3_mul_scalar(Vec3 a, double s); +static inline double |
