mt
Class MT_TrapShapeMartin
Object
common:Generic
common:TrapShape
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
}
Method Summary |
float |
Iterate(complex pz)
call this for each iteration being trapped |
Methods inherited from class Object |
|
MT_TrapShapeMartin
public MT_TrapShapeMartin()
Iterate
public float Iterate(complex pz)
- Description copied from class:
TrapShape
- call this for each iteration being trapped
- Overrides:
Iterate
in class TrapShape