Standard
Class Standard_TrapShapeSpiral

Object
  extended by common:Generic
      extended by common:TrapShape
          extended by Standard:Standard_TrapShapeSpiral

class 
TrapShape:Standard_TrapShapeSpiral



Ultra Fractal Source

Toggle UF Source Code Display

 class Standard_TrapShapeSpiral(common.ulb:TrapShape) {
 public:
   float func Iterate(complex pz)
     float d = 1/(cabs(pz)) * @diameter
     complex r0 = (0,1) ^ d
     complex z2 = pz * r0
     return atan(abs(imag(z2)/real(z2)))
   endfunc
 default:
   title = "Spiral"
   float param diameter
     caption = "Diameter"
     default = 1
     hint = "This is the diameter of the spiral."
   endparam
 }
 


Constructor Summary
Standard_TrapShapeSpiral()
           
 
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

Standard_TrapShapeSpiral

public Standard_TrapShapeSpiral()
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