Standard
Class Standard_TrapShapePinch

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

class 
TrapShape:Standard_TrapShapePinch



Ultra Fractal Source

Toggle UF Source Code Display

 class Standard_TrapShapePinch(common.ulb:TrapShape) {
 public:
   float func Iterate(complex pz)
     float d2 = atan2(pz)
     if d2 < 0
       d2 = d2 + 2*#pi
     endif
     return sqrt(cabs(pz)) / abs(sin(d2*@traporder*0.5))
   endfunc
 default:
   title = "Pinch"
   float param traporder
     caption = "Order"
     default = 4
     hint = "This is the number of 'leaves' for the pinch shape."
   endparam
 }
 


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

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