PDA

View Full Version : Ryan - Equations for Zoom?


Krash
18th October 2001, 08:31
This is a questions directed at Ryan - I hope he sees it. If anyone else can answer it, do so by all means.

What are the exact equations you use to calculate dx, dy, sx and sy when you perform a zoom? I imagine that the equations would involve rad, ang, and zoom_exp.
The reason I ask, Is I'm trying to doo a zoom effect which moves around the screen. I need to know how you do it in the code, so I can replicate it using my own variables.

Thanks.

<Plug>
for anyone else who sees this, I'm currently working on a preset which (a) will have a large amount of genuine mathematics in it (i.e., not just stuff typed in randomly), (b) will be the most easily customisable preset yet (though it won't have a lot of variety, it IS fun to play with), and (c) will be just plain cool.
</Plug>

- Krash