my mandelbrot set is defined in a XY world as a rectangular shape,
meaning at any given time i know its most bottom left and upper right corners. is there any way to know what is the total zooming percentage value from the original size by the size of the rectangle?
Thank, igal!

有帮助吗?

解决方案

100*(100% size)/(current size)

This is basic math. If your "100%" box is -2..2 (real), then it has size=4; if your current view is -1..1 then it has size=2, so your zoom % = 100*(base size)/(current size) = 200%.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top