diff options
author | dan <dmtaub@gmail.com> | 2011-01-28 16:11:11 -0500 |
---|---|---|
committer | dan <dmtaub@gmail.com> | 2011-01-28 16:11:11 -0500 |
commit | f017051f9b93c3a8ac435537c8c9c1f360d0702f (patch) | |
tree | 3f0a9e01ddcb87af2e1b016dd8489be572641ca0 /util | |
parent | fac2f8373cd0e63a34a39cb77c0c7276d1d88b65 (diff) | |
parent | a7d6577e55ebd665ad9e4f45183836f11b3c6fd4 (diff) |
Merge branch 'fridaydemo' of github.com:rcoh/SmootLight into osc
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 |