Package com.ardor3d.math.functions
Class MandelbrotFunction3D
java.lang.Object
com.ardor3d.math.functions.MandelbrotFunction3D
- All Implemented Interfaces:
Function3D
A function that returns the famous Mandelbrot set. This is not really 3d... The z factor is ignored.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
eval
(double x, double y, double z) int
void
setIterations
(int iterations)
-
Constructor Details
-
MandelbrotFunction3D
public MandelbrotFunction3D(int iterations)
-
-
Method Details
-
eval
public double eval(double x, double y, double z) - Specified by:
eval
in interfaceFunction3D
- Parameters:
x
- the 1st value in our tupley
- the 2nd value in our tuplez
- the 3rd value in our tuple- Returns:
- some value, generally (but not necessarily) in [-1, 1]
-
setIterations
public void setIterations(int iterations) -
getIterations
public int getIterations()
-