From 3b647c85e1749c8131e46387aa044cb009e60b10 Mon Sep 17 00:00:00 2001 From: "Nikolai S. Kiselev" Date: Tue, 10 Feb 2026 00:05:35 +0100 Subject: [PATCH] raymath: wrap float3 and float16 for consistency with other types (#5540) --- src/raymath.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/raymath.h b/src/raymath.h index 0f9cbc38b..214495a2c 100644 --- a/src/raymath.h +++ b/src/raymath.h @@ -164,13 +164,19 @@ typedef struct Matrix { #endif // NOTE: Helper types to be used instead of array return types for *ToFloat functions +#if !defined(RL_FLOAT3_TYPE) typedef struct float3 { float v[3]; } float3; +#define RL_FLOAT3_TYPE +#endif +#if !defined(RL_FLOAT16_TYPE) typedef struct float16 { float v[16]; } float16; +#define RL_FLOAT16_TYPE +#endif #include // Required for: sinf(), cosf(), tan(), atan2f(), sqrtf(), floor(), fminf(), fmaxf(), fabsf()