|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfpp.fractal.DoublePrecisionFractalGenerator
infpp.fractal.SimpleDoublePrecisionJuliaGenerator
public class SimpleDoublePrecisionJuliaGenerator
The SimpleDoublePrecisionJuliaGenerator provides an implementation for calculating the number of required iterations to determine the divergence of the sequence of points obtained by the recursion zn + 1 = (zn)2 + c where c is the point passed to the setDefiningPoint method and is constant during the calculation of the fractal and z1 is a point determined by screen coordinates. This implementation operates with standard double precision arithmetic.
Constructor Summary | |
---|---|
SimpleDoublePrecisionJuliaGenerator(int maxIterations)
Constructs a new SimpleDoublePrecisionJuliaGenerator initialized with (0, 0) as the defining point. |
Method Summary | |
---|---|
Complex |
getDefiningPoint()
Gets the defining point on the complex plane. |
int |
getNumberOfIterationsAtPixel(int x,
int y)
Calculates the number of required iterations to determine the divergence of the sequence of points obtained by the recursion zn + 1 = (zn)2 + c where c is the point passed to the setDefiningPoint method and is constant during the calculation of the fractal and z1 is a point determined by screen coordinates. |
void |
setDefiningPoint(Complex definingPoint)
Sets the defining point on the complex plane to the specified defining point. |
Methods inherited from class infpp.fractal.DoublePrecisionFractalGenerator |
---|
calculateComplexFromScreenCoordinates, getComplexOrigin, getRealDimension, getScreenHeight, getScreenWidth, setComplexOrigin, setRealDimension, setScreenDimension |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface infpp.fractal.FractalGenerator |
---|
calculateComplexFromScreenCoordinates, getComplexOrigin, getRealDimension, getScreenHeight, getScreenWidth, setComplexOrigin, setRealDimension, setScreenDimension |
Constructor Detail |
---|
public SimpleDoublePrecisionJuliaGenerator(int maxIterations)
maxIterations
- the maximum number of iterations to useMethod Detail |
---|
public Complex getDefiningPoint()
JuliaFractalGenerator
getDefiningPoint
in interface JuliaFractalGenerator
JuliaFractalGenerator.getDefiningPoint()
public void setDefiningPoint(Complex definingPoint)
JuliaFractalGenerator
setDefiningPoint
in interface JuliaFractalGenerator
definingPoint
- the specified defining pointJuliaFractalGenerator.setDefiningPoint(Complex)
public int getNumberOfIterationsAtPixel(int x, int y)
getNumberOfIterationsAtPixel
in interface FractalGenerator
x
- the x coordinate of the specified pixely
- the y coordinate of the specified pixel
FractalGenerator.getNumberOfIterationsAtPixel(int, int)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |