summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc')
-rw-r--r--inc/list.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/list.hpp b/inc/list.hpp
index 05e9fcc..14a6a9a 100644
--- a/inc/list.hpp
+++ b/inc/list.hpp
@@ -12,7 +12,7 @@ class List
List(Window m);
void Behavior();
void Place();
- double Distance(Location A, Location B);
+ double Distance(Location A, Location B){return sqrt(pow(A.x-B.x,2)+pow(A.y-B.y,2));};
private:
//vectors containing objects of each type