comparison python/moving.py @ 40:9f16aee24b7e

corrected bug for first and last of TimeInterval
author Nicolas Saunier <nico@confins.net>
date Wed, 19 May 2010 19:47:02 -0400
parents e47168f6b694
children eb78c6edc0c8
comparison
equal deleted inserted replaced
39:e47168f6b694 40:9f16aee24b7e
116 116
117 def empty(self): 117 def empty(self):
118 return self.timeInterval.empty() or not self.boudingPolygon 118 return self.timeInterval.empty() or not self.boudingPolygon
119 119
120 def getFirstInstant(self): 120 def getFirstInstant(self):
121 return self.timeInterval.first() 121 return self.timeInterval.first
122 122
123 def getLastInstant(self): 123 def getLastInstant(self):
124 return self.timeInterval.first() 124 return self.timeInterval.last
125 125
126 class Point: 126 class Point:
127 def __init__(self, x, y): 127 def __init__(self, x, y):
128 self.x = x 128 self.x = x
129 self.y = y 129 self.y = y