djfractal
Class FastFractalComputer
java.lang.Object
djfractal.AbstractFractalComputer
djfractal.FastFractalComputer
- All Implemented Interfaces:
- FractalComputer, java.io.Serializable
- public class FastFractalComputer
- extends AbstractFractalComputer
Fast implementation of the FractalComputer
interface using raw doubles.
- See Also:
FractalComputer
,
Serialized Form
Method Summary |
void |
_init(int iterations,
java.math.BigDecimal bailout)
|
protected int |
calculate(java.math.BigDecimal cr,
java.math.BigDecimal ci)
|
static void |
main(java.lang.String[] args)
|
protected void |
subRegion(int startX,
int startY,
int subRegionWidth,
int subRegionHeight,
int offsetX,
int offsetY,
int width,
int height,
FractalResult fr)
Compute a subRegion of a fractal data. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FastFractalComputer
public FastFractalComputer()
_init
public void _init(int iterations,
java.math.BigDecimal bailout)
- Specified by:
_init
in class AbstractFractalComputer
subRegion
protected void subRegion(int startX,
int startY,
int subRegionWidth,
int subRegionHeight,
int offsetX,
int offsetY,
int width,
int height,
FractalResult fr)
- Description copied from class:
AbstractFractalComputer
Compute a subRegion of a fractal data.
This method is invoked by AbstractFractalComputer.calculateAll(FractalData fd)
to
prevent the computation of precomputed corners.
- Specified by:
subRegion
in class AbstractFractalComputer
- Parameters:
startX
- the X value of the point this subregion beginsstartY
- the Y value of the point this subregion beginssubRegionWidth
- the width of the subregionsubRegionHeight
- the height of the subregionoffsetX
- the X offset in the fr.values
arrayoffsetY
- the Y offset in the fr.values
arraywidth
- the width of the fractal data the specified subregion
belongs toheight
- the height of the fractal data the specified subregion
belongs tofr
- the FractalResult
object to fill
calculate
protected final int calculate(java.math.BigDecimal cr,
java.math.BigDecimal ci)
- Specified by:
calculate
in class AbstractFractalComputer
main
public static void main(java.lang.String[] args)
DJFractal help mailing list