diff options
author | tom <tom@ground-control> | 2015-05-08 08:23:06 -0500 |
---|---|---|
committer | tom <tom@ground-control> | 2015-05-08 08:23:06 -0500 |
commit | 8c5121486a0e5d94ae5e5ee67370a31530cf8b6f (patch) | |
tree | f1e82b3dbd17485613e1100290f263426751db03 /src/list.cpp | |
parent | 04069434be15c06666a7493b1b6329a78c00d1d1 (diff) |
fixed some comments and cleaned around
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)); } |