diff python/moving.py @ 259:8ab76b95ee72

added code to save collision points and crossing zones in txt files
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Tue, 24 Jul 2012 15:18:12 -0400
parents d90be3c02267
children 0c0b92f621f6
line wrap: on
line diff
--- a/python/moving.py	Tue Jul 24 12:37:47 2012 -0400
+++ b/python/moving.py	Tue Jul 24 15:18:12 2012 -0400
@@ -240,7 +240,7 @@
         from math import atan2
         norm = p.norm2()
         if norm > 0:
-            angle = atan2(p.x, p.y)
+            angle = atan2(p.y, p.x)
         return NormAngle(norm, angle)
 
     def __add__(self, other):