]> git.lizzy.rs Git - nothing.git/blob - src/point.h
Use vector operations for player physics (#6)
[nothing.git] / src / point.h
1 #ifndef POINT_H_
2 #define POINT_H_
3
4 typedef struct point_t {
5     float x, y;
6 } point_t;
7
8 typedef point_t vec_t;
9
10 vec_t vec_sum(vec_t v1, vec_t v2);
11 void vec_add(vec_t *v1, vec_t v2);
12 vec_t vec_scala_mult(vec_t v, float scalar);
13
14 #endif  // POINT_H_