mirror of
https://github.com/raysan5/raylib.git
synced 2026-02-12 14:53:38 +00:00
raymath: wrap float3 and float16 for consistency with other types (#5540)
This commit is contained in:
committed by
GitHub
parent
b39cc6bce7
commit
3b647c85e1
@@ -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 <math.h> // Required for: sinf(), cosf(), tan(), atan2f(), sqrtf(), floor(), fminf(), fmaxf(), fabsf()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user