Vertigo anyone?

Hi,
I’ve tried numerous times to implement a vertigo/dolly zoom effect inside Touch.
I’d find it pretty useful to rather control the look/distortion of an image directly rather than FOV+distance. Now, according to wikipedia this should be pretty simple but I couldn’t get it to work, something seems off. Maybe something about units? I don’t know…
en.wikipedia.org/wiki/Dolly_zoom
Could somebody provide a working formula or enlighten me in any way?
any help appreciated!

edit=spelling

nevermind, got it. post it in a sec.

FOV as a function of distance and width

def calcFfromD(dist, width): import math fov = (360/math.pi)*math.atan(width/dist) return fov