-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFractal.java
42 lines (37 loc) · 978 Bytes
/
Fractal.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package FractalAnimator;
/**
* A Fractal
*
* @author Michael Muehlebach
*
* @see MandalbrotFractal
* @see FractalAnimator
*/
interface Fractal {
/**
* Set the iterations ( normaly only used by the constructor
*
* @param iterations the number of iterations of this fractal
*/
void setIterations ( int iterations );
/**
* Set the View Windows
*
* @param iterations the number of iterations of this fractal
* @param x_min the left border of the frame
* @param x_max the right border
* @param y_min the bottom border
* @param y_may the top border
*/
void setView ( double x_min, double x_max, double y_min, double y_max );
/**
* Calculates the fractal by the preset frame and iterations and for the given matrix size
*
* @param w The width of the point matrix
* @param h the height of the point matrix
*
* @return a 2 dimesion Array with the escape numbers
*/
FractalMatrix toMatrix(int w, int h);
FractalMatrix toMatrix();
}