diff options
author | eugue <eug.sun@gmail.com> | 2011-01-27 20:27:12 -0500 |
---|---|---|
committer | eugue <eug.sun@gmail.com> | 2011-01-27 20:27:12 -0500 |
commit | 6341992254c837b1d814b3eaa24b2ab3e729c8e2 (patch) | |
tree | 4cdf2f65e7a5b1d0a4be0f667754e73053af8493 /util | |
parent | f103e47da5d563d1b8448bc021676ed7db0f529d (diff) |
Added HTMLInput, SmootWind behavior, and a config file for testing.
Diffstat (limited to 'util')
-rw-r--r-- | util/Geo.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/util/Geo.py b/util/Geo.py index 05ea9fe..0dde80b 100644 --- a/util/Geo.py +++ b/util/Geo.py @@ -26,3 +26,9 @@ def randomLoc(boundingBox): #TODO: make less shitty def approxexp(x): """Approximates exp with a 3 term Taylor Series.""" return 1+x+x**2/2+x**3/6 + +def windtrail(x,y,height,center,width): + a=height + b=center + c=width + return a*((math.exp(-((x-b))/(c)))**2)*(math.exp(-((y))/(0.2*c)))**2 |