diff options
author | rcoh <rcoh@mit.edu> | 2011-02-08 18:47:17 -0500 |
---|---|---|
committer | rcoh <rcoh@mit.edu> | 2011-02-08 18:47:17 -0500 |
commit | 03d08792f437e1ce93dc0cbfa997025029c8e74e (patch) | |
tree | 0f4b5a63317bc582c2ab760b7339a709b7445afb /util/Geo.py | |
parent | 9cf7747d70032cee28f29f9707360544a0e63277 (diff) | |
parent | 06c639db6b98affab4abf07e57a90e2fcb5402ef (diff) |
Merge branch 'configimprovements' into objprops
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) |