mt
Class MT_TrapShapeMartin

Object
  extended by common:Generic
      extended by common:TrapShape
          extended by mt:MT_TrapShapeMartin

class 
TrapShape:MT_TrapShapeMartin

Mark Townsend, April 2008


Ultra Fractal Source

Toggle UF Source Code Display

 class MT_TrapShapeMartin(common.ulb:TrapShape) {
 ;
 ; Mark Townsend, April 2008
 ;
 public:
   float func Iterate(complex pz)
     float x = real(pz)
     float y = imag(pz)
     int iter = 0
     while iter < @max_iterations
       float xx = x
       x = y - sin(x)
       y = @a - xx
       iter = iter + 1
     endwhile
      m_LastZ = x + flip(y)
     return cabs(m_LastZ)
   endfunc
   
 default:
   title = "Martin"
   param a
     caption = "Martin parameter"
     default = 3.14159
   endparam
   param max_iterations
     caption = "Iterations"
     default = 10
     min = 1
     hint = "This is the number of iterations for the \
             Martin formula."
   endparam
 }
 


Constructor Summary
MT_TrapShapeMartin()
           
 
Method Summary
 float Iterate(complex pz)
          call this for each iteration being trapped
 
Methods inherited from class common:TrapShape
GetColorChannel, GetTextureValue, GetTransformedPoint, Init, IterateSilent, SetThreshold
 
Methods inherited from class common:Generic
GetParent
 
Methods inherited from class Object
 

Constructor Detail

MT_TrapShapeMartin

public MT_TrapShapeMartin()
Method Detail

Iterate

public float Iterate(complex pz)
Description copied from class: TrapShape
call this for each iteration being trapped

Overrides:
Iterate in class TrapShape