Package jadex.micro.mandelbrot.model
Class NewtonFractalAlgorithm
java.lang.Object
jadex.micro.mandelbrot.model.AbstractFractalAlgorithm
jadex.micro.mandelbrot.model.NewtonFractalAlgorithm
- All Implemented Interfaces:
IFractalAlgorithm
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionshort
determineColor
(double x, double y, short max) Determine the color of a point.Get default settings for rendering the fractal.Methods inherited from class jadex.micro.mandelbrot.model.AbstractFractalAlgorithm
createAlgorithms, equals, getDefaultAlgorithm, hashCode, isDefault, isOptimizationAllowed, toString, useColorCycle
-
Field Details
-
EPSILON
public static final double EPSILON- See Also:
-
-
Constructor Details
-
NewtonFractalAlgorithm
public NewtonFractalAlgorithm()
-
-
Method Details
-
determineColor
public short determineColor(double x, double y, short max) Description copied from interface:IFractalAlgorithm
Determine the color of a point.- Parameters:
x
- The x coordinate.y
- The y coordinate.max
- The maximum depth.- Returns:
- A value for the point from 0 to max-1 or -1 if the value is at the maximum.
-
getDefaultSettings
Get default settings for rendering the fractal.
-