diff options
Diffstat (limited to 'util/Geo.py')
-rw-r--r-- | util/Geo.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/util/Geo.py b/util/Geo.py index 0dde80b..43817ad 100644 --- a/util/Geo.py +++ b/util/Geo.py @@ -32,3 +32,10 @@ def windtrail(x,y,height,center,width): b=center c=width return a*((math.exp(-((x-b))/(c)))**2)*(math.exp(-((y))/(0.2*c)))**2 + +class Location(object): + def __init__(self,x=0,y=0): + self.x = x + self.y = y + def __add__(self, b): + return Location(self.x+b.x, self.y+b.y) |