aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorGravatar dan <dmtaub@gmail.com>2011-01-28 16:11:11 -0500
committerGravatar dan <dmtaub@gmail.com>2011-01-28 16:11:11 -0500
commitf017051f9b93c3a8ac435537c8c9c1f360d0702f (patch)
tree3f0a9e01ddcb87af2e1b016dd8489be572641ca0 /util
parentfac2f8373cd0e63a34a39cb77c0c7276d1d88b65 (diff)
parenta7d6577e55ebd665ad9e4f45183836f11b3c6fd4 (diff)
Merge branch 'fridaydemo' of github.com:rcoh/SmootLight into osc
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