Standard
Class Standard_Inverse

Object
  extended by common:Generic
      extended by common:Transform
          extended by common:UserTransform
              extended by Standard:Standard_Inverse

class 
UserTransform:Standard_Inverse

Object version of Inverse in Standard.uxf. Inverts the complex plane before calculating the fractal. Essentially turns the fractal "inside out".


Ultra Fractal Source

Toggle UF Source Code Display

 class Standard_Inverse(common.ulb:UserTransform) {
 ;
 ; Object version of Inverse in Standard.uxf.
 ;
 ; Inverts the complex plane before calculating the fractal. Essentially turns
 ; the fractal "inside out".
 ;
 public:
   complex func Iterate(complex pz)
     if @usescreen
       return #center + @radius / (pz - #center)
     else
       return @center + @radius / (pz - @center)
     endif
   endfunc
   
 default:
   title = "Inverse"
   helpfile = "Uf*.chm"
   helptopic = "Html/transformations/standard/inverse.html"
   param radius
     caption = "Radius"
     default = 1.0
     exponential = true
     hint = "This is the radius of the inversion circle. Larger values \
             magnify the fractal."
     min = 0
   endparam
   complex param center
     caption = "Center"
     default = (0, 0)
     hint = "This is the center of the inversion circle."
     enabled = !@usescreen
   endparam
   param usescreen
     caption = "Use Screen Center"
     default = false
     hint = "If enabled, the Center parameter is ignored and the \
             center set on the Location tab is used instead. \
             Don't enable this while zooming, or the results may be \
             confusing."
   endparam
 }
 


Constructor Summary
Standard_Inverse()
           
 
Method Summary
 complex Iterate(complex pz)
          Transform a single point within a sequence
 
Methods inherited from class common:Transform
Init, IsSolid, IterateSilent
 
Methods inherited from class common:Generic
GetParent
 
Methods inherited from class Object
 

Constructor Detail

Standard_Inverse

public Standard_Inverse()
Method Detail

Iterate

public complex Iterate(complex pz)
Description copied from class: Transform
Transform a single point within a sequence

After a sequence has been set up with Init(), this function will be called once for each value in the sequence. Note that all values in the sequence must be processed in order (they cannot be processed out of order). If the sequence contains only one value, Init() will still be called and then Iterate() will be called just once.

Overrides:
Iterate in class Transform
Parameters:
pz - the complex value to be transformed
Returns:
the transformed value