test: add tests for vectors
All checks were successful
CI / build (pull_request) Successful in 13s
CI / build (push) Successful in 13s

This commit was merged in pull request #6.
This commit is contained in:
2026-03-14 21:46:53 +01:00
parent fdb5dfd75e
commit 11c891c2f1
7 changed files with 4811 additions and 7 deletions

View File

@@ -20,4 +20,24 @@ float vec2_dot(struct vec2 a, struct vec2 b);
float vec2_det(struct vec2 a, struct vec2 b);
struct vec2 vec2_scale(struct vec2 v, float s);
float vec2_len(struct vec2 v);
struct vec2 vec2_normalize(struct vec2 v);
struct vec3 vec3_add(struct vec3 a, struct vec3 b);
struct vec3 vec3_sub(struct vec3 a, struct vec3 b);
float vec3_dot(struct vec3 a, struct vec3 b);
struct vec3 vec3_cross(struct vec3 a, struct vec3 b);
struct vec3 vec3_scale(struct vec3 v, float s);
float vec3_len(struct vec3 v);
struct vec3 vec3_normalize(struct vec3 v);
#endif