Class MandelbrotFunction3D

java.lang.Object
com.ardor3d.math.functions.MandelbrotFunction3D
All Implemented Interfaces:
Function3D

public class MandelbrotFunction3D extends Object implements Function3D
A function that returns the famous Mandelbrot set. This is not really 3d... The z factor is ignored.
See Also:
  • Constructor Details

    • MandelbrotFunction3D

      public MandelbrotFunction3D(int iterations)
  • Method Details

    • eval

      public double eval(double x, double y, double z)
      Specified by:
      eval in interface Function3D
      Parameters:
      x - the 1st value in our tuple
      y - the 2nd value in our tuple
      z - 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()