jlb
Class JLB_ZZDualTransform
Object
common:Generic
jlb:DualTransform
jlb:JLB_ZZDualTransform
class
- DualTransform:JLB_ZZDualTransform
ZZDualTransform does two Z contractions
p_z1 calls to a function, new z = ZContraction1(z, c)
p_z2 calls to a function, new z = ZContraction2(z, c)
Ultra Fractal Source
Toggle UF Source Code Display
class JLB_ZZDualTransform(DualTransform) {
; ZZDualTransform does two Z contractions
; p_z1 calls to a function, new z = ZContraction1(z, c)
; p_z2 calls to a function, new z = ZContraction2(z, c)
public:
import "common.ulb"
import "mmf.ulb"
; @param pparent the parent, generally "this" for the parent, or zero
func JLB_ZZDualTransform(Generic pparent)
DualTransform.DualTransform(pparent)
m_ZContraction1 = new @f_ZContraction1(this)
m_ZContraction2 = new @f_ZContraction2(this)
endfunc
; @param pz
; @param pc
; @return true if okay; possibly change both arguments
bool func Iterate(complex &pz, complex &pc)
int i
i = 0
while (i < @p_z1)
pz = m_ZContraction1.Iterate(pz, pc)
i = i + 1
endwhile
i = 0
while (i < @p_z2)
pz = m_ZContraction2.Iterate(pz, pc)
i = i + 1
endwhile
return true
endfunc
protected:
Contraction m_ZContraction1
Contraction m_ZContraction2
default:
title = "ZZ DualTransform"
int param v_ZZDualTransform
caption = "Version (ZZDualTransform)"
default = 100
hint = "This version parameter is used to detect when a change has \
been made to the formula that is incompatible with the \
previous version. When that happens, this field will reflect \
the old version number to alert you to the fact that an \
alternate rendering is being used."
visible = @v_ZZDualTransform < 100
endparam
Heading
Endheading
Heading
caption = "New z based on z and c"
Endheading
int param p_z1
caption = "Times"
min = 0
default = 1
endparam
Contraction param f_ZContraction1
caption = "z/c -> new z"
default = JLB_MandelbrotContraction
; hint = "The default Null Contraction does nothing."
endparam
Heading
caption = "New z based on z and c"
Endheading
int param p_z2
caption = "Times"
min = 0
default = 1
endparam
Contraction param f_ZContraction2
caption = "z/c -> new z"
default = JLB_MandelbrotContraction
; hint = "The default Null Contraction does nothing."
endparam
Heading
Endheading
}
Methods inherited from class Object |
|
JLB_ZZDualTransform
public JLB_ZZDualTransform(Generic pparent)
- Parameters:
pparent
- the parent, generally "this" for the parent, or zero
JLB_ZZDualTransform
public JLB_ZZDualTransform()
Iterate
public boolean Iterate(complex pz,
complex pc)
- Overrides:
Iterate
in class DualTransform
- Parameters:
pz
- pc
-
- Returns:
- true if okay; possibly change both arguments