Create vec2_t/vec3_t typedefs

This commit is contained in:
twinaphex 2016-06-29 19:42:30 +02:00
parent a1cf6f29f4
commit 5d7367e89a
2 changed files with 4 additions and 0 deletions

View File

@ -25,6 +25,8 @@
#include <stdint.h>
typedef float vec2_t[2];
float vec2_dot(const float *a, const float *b);
float vec2_cross(const float *a, const float *b) ;

View File

@ -25,6 +25,8 @@
#include <stdint.h>
typedef float vec3_t[3];
float vec3_dot(const float *a, const float *b);
void vec3_cross(float* dst, const float *a, const float *b);