ptk/include/ptk_vec.h

35 lines
446 B
C

#ifndef PTK_PTK_VEC_H_
#define PTK_PTK_VEC_H_
typedef struct {
float x;
float y;
} PtkVec2;
typedef PtkVec2 PtkPos;
typedef union {
struct {
float w;
float h;
};
struct {
float width;
float height;
};
} PtkSize;
typedef struct {
float x;
float y;
float z;
} PtkVec3;
typedef struct {
float x;
float y;
float z;
float w;
} PtkVec4;
#endif // PTK_PTK_VEC_H_