Fix barycentric coordinates calculation #2

Merged
abdelrahman merged 8 commits from debug-barycentric into main 2024-08-26 17:12:45 +00:00
Showing only changes of commit e905fed7a5 - Show all commits

View File

@ -5,6 +5,8 @@
#include "typed_list.h" #include "typed_list.h"
#include <math.h> #include <math.h>
#define V3_ELEM_COUNT 3
typedef struct i64x2 V2i; typedef struct i64x2 V2i;
struct i64x2 { struct i64x2 {
i64 x; i64 x;
@ -32,7 +34,7 @@ struct f32x2 {
typedef struct f32x3 V3f; typedef struct f32x3 V3f;
struct f32x3 { struct f32x3 {
union { union {
f32 elements[3]; f32 elements[V3_ELEM_COUNT];
struct { struct {
union { union {
f32 x; f32 x;