From 74c6854fd8dcbaee736ac0421805ff1e03c4a1e2 Mon Sep 17 00:00:00 2001 From: iamn1ck Date: Sun, 19 Feb 2017 07:00:34 -0600 Subject: -quadtree and opengl rendering are now in the master branch ! -using sdl_rect for location and size ended up being not so great due to it not having floats, so we reverted back to using location -much, much refractoring is now needed --- inc/functions.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'inc/functions.hpp') diff --git a/inc/functions.hpp b/inc/functions.hpp index 2ddcda9..ce072e2 100644 --- a/inc/functions.hpp +++ b/inc/functions.hpp @@ -1,7 +1,9 @@ #ifndef functions_h #define functions_h -static double Distance(SDL_Rect A, SDL_Rect B){ +#include "graphicsobjects.hpp" + +static double Distance(Location A, Location B){ return sqrt( pow(A.x-B.x,2) + pow(A.y-B.y,2)); } -- cgit v1.2.3