문제

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