From 5d7367e89a74ef31fe65db37e2a354d14e5b4288 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 29 Jun 2016 19:42:30 +0200 Subject: [PATCH] Create vec2_t/vec3_t typedefs --- libretro-common/include/gfx/math/vector_2.h | 2 ++ libretro-common/include/gfx/math/vector_3.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/libretro-common/include/gfx/math/vector_2.h b/libretro-common/include/gfx/math/vector_2.h index 6a79bfbc9c..430652bbb1 100644 --- a/libretro-common/include/gfx/math/vector_2.h +++ b/libretro-common/include/gfx/math/vector_2.h @@ -25,6 +25,8 @@ #include +typedef float vec2_t[2]; + float vec2_dot(const float *a, const float *b); float vec2_cross(const float *a, const float *b) ; diff --git a/libretro-common/include/gfx/math/vector_3.h b/libretro-common/include/gfx/math/vector_3.h index cb94a9fc71..022401122d 100644 --- a/libretro-common/include/gfx/math/vector_3.h +++ b/libretro-common/include/gfx/math/vector_3.h @@ -25,6 +25,8 @@ #include +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);