feat(vector): Initialize module and add conversion functions

This commit is contained in:
2025-03-09 19:40:32 +01:00
committed by Loïc GUEZO
parent e8517ea625
commit 66b55cce0f
2 changed files with 21 additions and 0 deletions

11
src/math/vector.c Normal file
View File

@@ -0,0 +1,11 @@
#include "math/vector.h"
Vec3* Vec4ToVec3(Vec4* v)
{
return vec3(v->x, v->y, v->z);
}
Vec4* Vec3ToVec4(Vec3* v)
{
return vec4(v->x, v->y, v->z, 0);
}