summaryrefslogtreecommitdiffstats
path: root/vec.c
diff options
context:
space:
mode:
Diffstat (limited to 'vec.c')
-rw-r--r--vec.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/vec.c b/vec.c
index b03a03f..b26dc39 100644
--- a/vec.c
+++ b/vec.c
@@ -1,6 +1,11 @@
#include "balls.h"
Vec
+vadd(Vec v1, Vec v2) {
+ return V(v1.x+v2.x, v1.y+v2.y);
+}
+
+Vec
vsub(Vec v1, Vec v2) {
return V(v1.x-v2.x, v1.y-v2.y);
}