Class ComplexNumber
java.lang.Object
org.woehlke.computer.kurzweil.commons.model.fractal.ComplexNumber
public class ComplexNumber
extends java.lang.Object
Mandelbrot Set drawn by a Turing Machine.
(C) 2006 - 2015 Thomas Woehlke.
https://thomas-woehlke.blogspot.com/2016/01/mandelbrot-set-drawn-by-turing-machine.html
- Author:
- Thomas Woehlke Created by tw on 18.08.15.
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_ITERATIONS
-
Constructor Summary
Constructors Constructor Description ComplexNumber()
ComplexNumber(double real, double img)
ComplexNumber(ComplexNumber complexNumber)
-
Method Summary
Modifier and Type Method Description int
computeJuliaSet(ComplexNumber c)
int
computeMandelbrotSet()
boolean
equals(java.lang.Object o)
double
getImg()
double
getReal()
int
hashCode()
boolean
isInJuliaSet()
boolean
isInMandelbrotSet()
boolean
isNotDivergent()
ComplexNumber
plus(ComplexNumber complexNumber)
ComplexNumber
square()
java.lang.String
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
MAX_ITERATIONS
public static final int MAX_ITERATIONS- See Also:
- Constant Field Values
-
-
Constructor Details
-
ComplexNumber
public ComplexNumber() -
ComplexNumber
-
ComplexNumber
public ComplexNumber(double real, double img)
-
-
Method Details
-
getReal
public double getReal() -
getImg
public double getImg() -
plus
-
square
-
computeMandelbrotSet
public int computeMandelbrotSet() -
computeJuliaSet
-
isInMandelbrotSet
public boolean isInMandelbrotSet() -
isInJuliaSet
public boolean isInJuliaSet() -
isNotDivergent
public boolean isNotDivergent() -
equals
public boolean equals(java.lang.Object o)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-