docs(vector3): start commenting vector3.h

This commit is contained in:
2025-03-15 19:34:29 +01:00
committed by Loïc GUEZO
parent 10c5f7164d
commit 1cd95b0fbd
2 changed files with 21 additions and 5 deletions

View File

@@ -5,6 +5,14 @@ typedef struct {
float x, y, z;
} Vec3;
/**
* @brief Creates a new 3D vector.
* @param x X-axis coordinate.
* @param y Y-axis coordinate.
* @param z Z-axis coordinate.
* @return A pointer to the newly allocated 3D vector if
* successful, or NULL if the allocation fails.
*/
Vec3* vec3(float x, float y, float z);
Vec3* vec3Add(Vec3* v1, Vec3* v2);