|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objectcommon:Generic
common:Formula
common:ConvergentDivergentFormula
Standard:Standard_Magnet1Mandelbrot
class
Object version of Magnet1Mandelbrot in Standard.ufm.
Magnetic Mandelbrot set type 1.
Constructor Summary | |
---|---|
Standard_Magnet1Mandelbrot()
|
Method Summary | |
---|---|
complex |
Init(complex pz)
Set up for a sequence of values |
boolean |
IsBailedOut(complex pz)
Test whether the formula has bailed out (i.e. |
complex |
Iterate(complex pz)
Produce the next value in the sequence |
Methods inherited from class common:ConvergentDivergentFormula |
---|
GetLowerBailout, GetUpperBailout |
Methods inherited from class common:Formula |
---|
GetPrimaryExponent |
Methods inherited from class common:Generic |
---|
GetParent |
Methods inherited from class Object |
---|
|
Constructor Detail |
---|
public Standard_Magnet1Mandelbrot()
Method Detail |
---|
public complex Init(complex pz)
ConvergentDivergentFormula
This function will be called at the beginning of each sequence of values (e.g. at the beginning of each fractal orbit).
Init
in class ConvergentDivergentFormula
pz
- seed value for the sequence; for a normal fractal formula, this will be #pixel
public complex Iterate(complex pz)
ConvergentDivergentFormula
As long as the sequence has not bailed out, this function will be continually called to produce sequence values.
Iterate
in class ConvergentDivergentFormula
pz
- previous value in the sequence; corresponds to #z in a fractal formula. Note that you should always use this value for computing the next iteration, rather than a saved value, as the calling code may modify the returned value before passing it back to the next Iterate() call.
public boolean IsBailedOut(complex pz)
ConvergentDivergentFormula
Since this is a divergent fractal, the test is easy: if it's bigger than the bailout, the sequence is done.
IsBailedOut
in class ConvergentDivergentFormula
pz
- last sequence value to test; this should be the value returned from the previous Iterate() call. Note that it is acceptable to ignore pz and use m_BailedOut, but any code calling IsBailedOut() should pass in the correct pz for Formula classes which do not use m_BailedOut.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |