crystal-tower/inc/vec.h

20 lines
349 B
C

#pragma once
struct Vec {
int x;
int y;
};
#define VEC(x, y) \
(struct Vec) { x, y }
#define VECZ VEC(0, 0)
struct VecF {
float x;
float y;
};
#define VECF(x, y) \
(struct VecF) { x, y }
#define VECFZ VECF(0.0f, 0.0f)