1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- #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);
- 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;
- };
- #endif
|