From 8c5121486a0e5d94ae5e5ee67370a31530cf8b6f Mon Sep 17 00:00:00 2001 From: tom Date: Fri, 8 May 2015 08:23:06 -0500 Subject: fixed some comments and cleaned around --- src/list.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/list.cpp') diff --git a/src/list.cpp b/src/list.cpp index b86f077..2140a75 100644 --- a/src/list.cpp +++ b/src/list.cpp @@ -65,6 +65,5 @@ void List::Behavior() double List::Distance(Location A, Location B) { //computes distance between two points - double z = sqrt(pow(A.x - B.x, 2) + pow(A.y - B.y, 2)); - return z; + return sqrt(pow(A.x - B.x, 2) + pow(A.y - B.y, 2)); } -- cgit v1.2.3