mmf
Class MMF_SwitchBeta

Object
  extended by common:Generic
      extended by common:Formula
          extended by common:DivergentFormula
              extended by mmf:MMF_SwitchDivergentFormula
                  extended by mmf:MMF_SwitchBeta

class 
MMF_SwitchDivergentFormula:MMF_SwitchBeta

Switchable Beta(z,c).


Ultra Fractal Source

Toggle UF Source Code Display

 class MMF_SwitchBeta(MMF_SwitchDivergentFormula) {
 ;
 ; Switchable Beta(z,c).<br>
 ;
 public:
   import "common.ulb"
   ; @param pparent the parent, generally "this" for the parent, or zero
   func MMF_SwitchBeta(Generic pparent)
     MMF_SwitchDivergentFormula.MMF_SwitchDivergentFormula(pparent)
   endfunc
 
   complex func Iterate(complex pz)
     return Math.ComplexBeta(pz,fConstant)
   endfunc
 
 default:
   title = "Switch Beta"
   bool param p_addpixel
     caption = "Offset z start"
     default = true
     hint = "When enabled the z start value (in Mandelbrot mode) is offset \
             by the constant for the current position - normally '#pixel'."
     visible = !@p_manual || @p_mandy
   endparam
   complex param p_power
     visible = false
   endparam
 }
 


Constructor Summary
MMF_SwitchBeta()
           
MMF_SwitchBeta(Generic pparent)
           
 
Method Summary
 complex Iterate(complex pz)
          Produce the next value in the sequence
 
Methods inherited from class mmf:MMF_SwitchDivergentFormula
Init, SetParams
 
Methods inherited from class common:DivergentFormula
GetUpperBailout, IsBailedOut
 
Methods inherited from class common:Formula
GetLowerBailout, GetPrimaryExponent
 
Methods inherited from class common:Generic
GetParent
 
Methods inherited from class Object
 

Constructor Detail

MMF_SwitchBeta

public MMF_SwitchBeta(Generic pparent)
Parameters:
pparent - the parent, generally "this" for the parent, or zero

MMF_SwitchBeta

public MMF_SwitchBeta()
Method Detail

Iterate

public complex Iterate(complex pz)
Description copied from class: Formula
Produce the next value in the sequence

As long as the sequence has not bailed out, this function will be continually called to produce sequence values.

Overrides:
Iterate in class Formula
Parameters:
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.
Returns:
the next value in the sequence