From 50f5164c529d57aeaf5c435b33683afabfc25c40 Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Wed, 25 Sep 2024 17:06:56 -0400 Subject: refactor collisions --- balls.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'balls.h') diff --git a/balls.h b/balls.h index 8e66ae0..69adde9 100644 --- a/balls.h +++ b/balls.h @@ -1,5 +1,6 @@ #include #include +#include #include #include @@ -31,4 +32,6 @@ Point ptaddv(Point p, Vec v); Vec V(double x, double y); Vec Vpt(Point p, Point q); -int iscollision(Point p, Point q); \ No newline at end of file +int iscollision(Point p, Point q); +void collideball(Ball *b1, const Ball *b2); +void collidewall(Ball *b, Rectangle wall); -- cgit v1.2.3