From 5c89b3615c067c51e0076f5433ccbdbee5022f70 Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Wed, 2 Oct 2024 11:44:15 -0400 Subject: refactor --- balls.cpp | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'balls.cpp') diff --git a/balls.cpp b/balls.cpp index 621fb13..45704a5 100644 --- a/balls.cpp +++ b/balls.cpp @@ -116,19 +116,3 @@ animate(int v) { display(); glutTimerFunc(FRAME_TIME_MS, animate, 0); } - -Point -ptAddVec(Point p, Vector v) { - p.x += v.x; - p.y += v.y; - return p; -} - -Rectangle -insetRect(Rectangle r, double n) { - r.min.x += n; - r.min.y += n; - r.max.x -= n; - r.max.y -= n; - return r; -} -- cgit v1.2.3