summaryrefslogtreecommitdiff
path: root/warp.py
diff options
context:
space:
mode:
Diffstat (limited to 'warp.py')
-rw-r--r--warp.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/warp.py b/warp.py
index 746b665..f6407e9 100644
--- a/warp.py
+++ b/warp.py
@@ -18,7 +18,8 @@ def get_maps(xres,yres):
yy=(y-yres/2.)/xres # yes, xres.
for x in xrange(0,xres):
- xx=(x-xres/2.)/xres
+ xx_=(x-xres/2.)/xres
+ xx=math.tan(xx_)
dist = math.sqrt(xx**2 + yy**2)