aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorGravatar eugue <eug.sun@gmail.com>2011-01-27 20:27:12 -0500
committerGravatar eugue <eug.sun@gmail.com>2011-01-27 20:27:12 -0500
commit6341992254c837b1d814b3eaa24b2ab3e729c8e2 (patch)
tree4cdf2f65e7a5b1d0a4be0f667754e73053af8493 /util
parentf103e47da5d563d1b8448bc021676ed7db0f529d (diff)
Added HTMLInput, SmootWind behavior, and a config file for testing.
Diffstat (limited to 'util')
-rw-r--r--util/Geo.py6
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