mirror of
https://github.com/guezoloic/t3dsr.git
synced 2026-01-25 13:34:24 +00:00
docs(vector3): start commenting vector3.h
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user