changeset 193:e16b8ca470d8

distance calc change
author drewp
date Mon, 31 May 2004 07:31:32 +0000
parents 14c67d11027e
children 70d45c584776
files flax/tracker
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flax/tracker	Mon Jul 28 13:51:08 2003 +0000
+++ b/flax/tracker	Mon May 31 07:31:32 2004 +0000
@@ -19,7 +19,7 @@
 defaultfont="arial 8"
 
 def pairdist(pair1,pair2):
-    return sqrt((pair1[0]-pair2[0])**2+(pair1[1]-pair2[1])**2)
+    return pair1.dist(pair2)
 
 def canvashighlighter(canvas,obj,attribute,normalval,highlightval):
     """creates bindings on a canvas obj that make attribute go