Skip to content

Commit 3b647c8

Browse files
authored
raymath: wrap float3 and float16 for consistency with other types (#5540)
1 parent b39cc6b commit 3b647c8

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/raymath.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,19 @@ typedef struct Matrix {
164164
#endif
165165

166166
// NOTE: Helper types to be used instead of array return types for *ToFloat functions
167+
#if !defined(RL_FLOAT3_TYPE)
167168
typedef struct float3 {
168169
float v[3];
169170
} float3;
171+
#define RL_FLOAT3_TYPE
172+
#endif
170173

174+
#if !defined(RL_FLOAT16_TYPE)
171175
typedef struct float16 {
172176
float v[16];
173177
} float16;
178+
#define RL_FLOAT16_TYPE
179+
#endif
174180

175181
#include <math.h> // Required for: sinf(), cosf(), tan(), atan2f(), sqrtf(), floor(), fminf(), fmaxf(), fabsf()
176182

0 commit comments

Comments
 (0)