123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- #ifndef MANDEL_MANDELUTIL_H
- #define MANDEL_MANDELUTIL_H
- namespace mnd
- {
- struct MandelViewport;
- struct MandelInfo;
- }
- struct mnd::MandelViewport
- {
-
- double x = -2.1;
-
- double y = -1.5;
-
- double width = 3;
-
- double height = 3;
-
- void adjustAspectRatio(double nwidth, double nheight);
-
- void normalize(void);
-
- void zoomCenter(float scale);
-
- void zoom(float scale, float x, float y);
-
- static MandelViewport standardView(void);
- inline double right() const { return x + width; }
- inline double bottom() const { return y + height; }
- };
- struct mnd::MandelInfo
- {
-
- MandelViewport view;
-
- long bWidth;
-
- long bHeight;
-
-
- int maxIter;
- };
- #endif
|