Class ComplexNumber
java.lang.Object
org.woehlke.computer.kurzweil.mandelbrot.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 intMAX_ITERATIONS -
Constructor Summary
Constructors Constructor Description ComplexNumber()ComplexNumber(double real, double img)ComplexNumber(ComplexNumber complexNumber) -
Method Summary
Modifier and Type Method Description intcomputeJuliaSet(ComplexNumber c)intcomputeMandelbrotSet()booleanequals(java.lang.Object o)doublegetImg()doublegetReal()inthashCode()booleanisInJuliaSet()booleanisInMandelbrotSet()booleanisNotDivergent()ComplexNumberplus(ComplexNumber complexNumber)ComplexNumbersquare()java.lang.StringtoString()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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-