diff python/event.py @ 93:19603b5fa578

added timeinterval computation for indicators based on dictionaries
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Mon, 13 Jun 2011 14:15:08 -0400
parents ded58c424783
children 7da14f07e1f9
line wrap: on
line diff
--- a/python/event.py	Sun Jun 12 03:24:55 2011 -0400
+++ b/python/event.py	Mon Jun 13 14:15:08 2011 -0400
@@ -36,6 +36,7 @@
             return None
 
     def computeIndicators(self):
+        '''Computes the collision course cosine only if the cosine is positive'''
         collisionCourseDotProduct = [0]*self.timeInterval.length()
         collisionCourseCosine = {}
         distances = [0]*self.timeInterval.length()