# HG changeset patch # User Nicolas Saunier # Date 1417819816 18000 # Node ID 985a3021cff24fa73c0362c176e3426b82493c59 # Parent aded6c1c2ebdcc5ec0680aa4150e6d6c0ab3893e first match table implementation diff -r aded6c1c2ebd -r 985a3021cff2 python/moving.py --- a/python/moving.py Fri Dec 05 17:00:37 2014 -0500 +++ b/python/moving.py Fri Dec 05 17:50:16 2014 -0500 @@ -1307,14 +1307,37 @@ def matches(self, obj, instant, matchingDistance): '''Indicates if the annotation matches obj (MovingObject) with threshold matchingDistance''' - return True + d = Point.distanceNorm2(self.getPositionAtInstant(instant), obj.getPositionAtInstant(instant)) + return d