| java.lang.Object org.cougaar.demo.mandelbrot.util.FractalMath
FractalMath | final public class FractalMath (Code) | | Fractal math routines.
|
Method Summary | |
public static byte | compute(double x0, double y0, double cx, double cy) Compute a single pixel for either the Mandelbrot or Julia Set.
Parameters: x0 - the initial x value Parameters: y0 - the initial y value Parameters: cx - for the Mandlebrot Set use x0, otherwise for the Julia Setuse a constant (e.g. | public static byte[] | compute(int width, int height, double x_min, double x_max, double y_min, double y_max, boolean isJulia, double cx, double cy) Compute all pixel values within the given range. | public static void | compute(int width, int height, double x_min, double x_max, double y_min, double y_max, boolean julia, double cx, double cy, byte[] data) | public static byte | julia(double x0, double y0, double cx, double cy) | public static byte[] | julia(int width, int height, double x_min, double x_max, double y_min, double y_max, double cx, double cy) | public static void | julia(int width, int height, double x_min, double x_max, double y_min, double y_max, double cx, double cy, byte[] data) | public static byte | mandelbrot(double x0, double y0) | public static byte[] | mandelbrot(int width, int height, double x_min, double x_max, double y_min, double y_max) | public static void | mandelbrot(int width, int height, double x_min, double x_max, double y_min, double y_max, byte[] data) |
compute | public static byte compute(double x0, double y0, double cx, double cy)(Code) | | Compute a single pixel for either the Mandelbrot or Julia Set.
Parameters: x0 - the initial x value Parameters: y0 - the initial y value Parameters: cx - for the Mandlebrot Set use x0, otherwise for the Julia Setuse a constant (e.g. -0.70176) Parameters: cy - for the Mandlebrot Set use y0, otherwise for the Julia Setuse a constant (e.g. -0.3842) |
compute | public static byte[] compute(int width, int height, double x_min, double x_max, double y_min, double y_max, boolean isJulia, double cx, double cy)(Code) | | Compute all pixel values within the given range.
Parameters: isJulia - if true then use the "cx" and "cy" values to compute theJulia Set, otherwise ignore the "cx" and "cy" values and compute theMandelbrotSet Parameters: cx - only used if isJulia is true Parameters: cy - only used if isJulia is true an array of size (width*height). |
compute | public static void compute(int width, int height, double x_min, double x_max, double y_min, double y_max, boolean julia, double cx, double cy, byte[] data)(Code) | | See Also: FractalMath.compute(int,int,double,double,double,double,boolean,double,double) See Also: Same as the other "compute", except pass in the byte[] instead of See Also: allocating and returning one. |
julia | public static byte[] julia(int width, int height, double x_min, double x_max, double y_min, double y_max, double cx, double cy)(Code) | | See Also: FractalMath.compute(double,double,double,double,boolean,double,double) See Also: |
julia | public static void julia(int width, int height, double x_min, double x_max, double y_min, double y_max, double cx, double cy, byte[] data)(Code) | | See Also: FractalMath.compute(double,double,double,double,boolean,double,double,byte[]) See Also: |
mandelbrot | public static byte[] mandelbrot(int width, int height, double x_min, double x_max, double y_min, double y_max)(Code) | | See Also: FractalMath.compute(double,double,double,double,boolean,double,double) See Also: |
mandelbrot | public static void mandelbrot(int width, int height, double x_min, double x_max, double y_min, double y_max, byte[] data)(Code) | | See Also: FractalMath.compute(double,double,double,double,boolean,double,double,byte[]) See Also: |
|
|