13 lines
213 B
C
13 lines
213 B
C
#ifndef VECTOR_H
|
|
#define VECTOR_H
|
|
typedef struct {
|
|
int x;
|
|
int y;
|
|
} vec2;
|
|
|
|
vec2 vec2_add(vec2 a, vec2 b);
|
|
vec2 vec2_sub(vec2 a, vec2 b);
|
|
vec2 vec2_mul(vec2 a, vec2 b);
|
|
vec2 vec2_dev(vec2 a, vec2 b);
|
|
#endif
|