diff python/moving.py @ 28:9ae709a2e8d0

rearranged code
author Nicolas Saunier <nico@confins.net>
date Sat, 30 Jan 2010 21:42:53 -0500
parents 44689029a86f
children 418b41056e6c
line wrap: on
line diff
--- a/python/moving.py	Sat Dec 05 15:40:28 2009 -0500
+++ b/python/moving.py	Sat Jan 30 21:42:53 2010 -0500
@@ -141,6 +141,9 @@
         '''
         return Point(self.x-other.x, self.y-other.y)
 
+    def aslist(self):
+        return [self.x, self.y]
+
 class Trajectory:
     '''Class for trajectories
     i.e. a temporal sequence of positions