feat: add common vec2 and vec3 operations
Some checks failed
CI / build (push) Failing after 13s

This commit is contained in:
2026-03-14 17:25:54 +01:00
parent 79997dbce2
commit 5e70354ec2
4 changed files with 90 additions and 12 deletions

View File

@@ -3,11 +3,11 @@
int main()
{
struct vec2 a = {1, 2};
struct vec2 b = {3, 4};
struct vec2 a = { 1, 2 };
struct vec2 b = { 3, 4 };
struct vec2 r = vec2_add(a, b);
struct vec2 r = vec2_add(a, b);
assert(r.x == 4);
assert(r.y == 6);
assert(r.x == 4);
assert(r.y == 6);
}