12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- #ifndef MANDEL_MANDELUTIL_H
- #define MANDEL_MANDELUTIL_H
- #include "Types.h"
- namespace mnd
- {
- struct MandelViewport;
- struct MandelInfo;
- }
- struct mnd::MandelViewport
- {
-
- Real x = -2.1;
-
- Real y = -1.5;
-
- Real width = 3;
-
- Real 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);
-
- static MandelViewport centerView(void);
- inline Real right() const { return x + width; }
- inline Real bottom() const { return y + height; }
- };
- struct mnd::MandelInfo
- {
-
- MandelViewport view;
-
- long bWidth;
-
- long bHeight;
-
- long maxIter;
-
- bool smooth;
- bool julia = false;
- Real juliaX;
- Real juliaY;
- };
- #endif
|