Add V3_ELEM_COUNT macro
This commit is contained in:
parent
d0b293ec9a
commit
e905fed7a5
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user