mt
Class MT_TrapShapeSine

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

class 
TrapShape:MT_TrapShapeSine

Mark Townsend, May 2008


Ultra Fractal Source

Toggle UF Source Code Display

 class MT_TrapShapeSine(common.ulb:TrapShape) {
 ;
 ; Mark Townsend, May 2008
 ;
 public:
   float func Iterate(complex pz)
     x = @ha * real(sin(@ht * imag(@fn1(pz))))
     y = @va * real(sin(@vt * real(@fn2(pz))) )
     m_LastZ = x + flip(y)
     return cabs(pz - m_LastZ)
   endfunc
   
 default:
   title = "Sine"
   param ht
     caption = "Frequency #1"
     default = 10.0
   endparam
   param ha
     caption = "Amplitude #1"
     default = 0.5
   endparam
   param vt
     caption = "Frequency #2"
     default = 10.0
   endparam
   param va
     caption = "Amplitude #2"
     default = 0.5
   endparam
   func fn1
     caption = "First Function"
     default = ident()
   endfunc
   func fn2
     caption = "Second Function"
     default = ident()
   endfunc
 }
 


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

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