diff options
Diffstat (limited to 'src/list.cpp')
-rw-r--r-- | src/list.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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)); } |