mirror of
https://github.com/guezoloic/t3dsr.git
synced 2026-01-25 09:34:24 +00:00
14 lines
227 B
C
14 lines
227 B
C
#include <math/vector3.h>
|
|
#include <stdlib.h>
|
|
|
|
Vec3* vec3(float x, float y, float z)
|
|
{
|
|
Vec3* vec = (Vec3*)malloc(sizeof(Vec3));
|
|
if (!vec) return NULL;
|
|
|
|
vec->x = x;
|
|
vec->y = y;
|
|
vec->z = z;
|
|
|
|
return vec;
|
|
} |