summaryrefslogtreecommitdiff
path: root/src/list.cpp
diff options
context:
space:
mode:
authortom <tom@ground-control>2015-05-08 08:23:06 -0500
committertom <tom@ground-control>2015-05-08 08:23:06 -0500
commit8c5121486a0e5d94ae5e5ee67370a31530cf8b6f (patch)
treef1e82b3dbd17485613e1100290f263426751db03 /src/list.cpp
parent04069434be15c06666a7493b1b6329a78c00d1d1 (diff)
fixed some comments and cleaned around
Diffstat (limited to 'src/list.cpp')
-rw-r--r--src/list.cpp3
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));
}