mmf
Class MMF_SimpleMatrixTransform
Object
common:Generic
common:Transform
common:UserTransform
mmf:MMF_SimpleMatrixTransform
class
- UserTransform:MMF_SimpleMatrixTransform
Transforms pz by a general 2*2 matrix.
Ultra Fractal Source
Toggle UF Source Code Display
class MMF_SimpleMatrixTransform(common.ulb:UserTransform) {
; Transforms pz by a general 2*2 matrix.<br>
public:
import "common.ulb"
; @param pparent the parent, generally "this" for the parent, or zero
func MMF_SimpleMatrix(Generic pparent)
UserTransform.UserTransform(pparent)
endfunc
complex func Iterate(complex pz)
; m_Iterations = m_Iterations + 1 not used in this transform
return real(pz)*real(@p_r0) + imag(pz)*real(@p_r1) \
+ flip(real(pz)*imag(@p_r0) + imag(pz)*imag(@p_r1))
endfunc
default:
title = "Simple Matrix Transform"
heading
text = "This matrix transform takes the form: \
z = x*Re(Row 0) + y*Re(Row 1) + flip(x*Im(Row 0) \
+ y*Im(Row 1))."
endheading
complex param p_r0
caption = "Row 0"
default = (1,0)
hint = "Use (1,0) for the identity matrix."
endparam
complex param p_r1
caption = "Row 1"
default = (0,1)
hint = "Use (0,1) for the identity matrix."
endparam
}
Methods inherited from class Object |
|
MMF_SimpleMatrixTransform
public MMF_SimpleMatrixTransform()
MMF_SimpleMatrix
public void MMF_SimpleMatrix(Generic pparent)
- Parameters:
pparent
- the parent, generally "this" for the parent, or zero
Iterate
public complex Iterate(complex pz)
- Description copied from class:
Transform
- Transform a single point within a sequence
After a sequence has been set up with Init(), this function
will be called once for each value in the sequence. Note
that all values in the sequence must be processed in order
(they cannot be processed out of order). If the sequence
contains only one value, Init() will still be called and
then Iterate() will be called just once.
- Overrides:
Iterate
in class Transform
- Parameters:
pz
- the complex value to be transformed
- Returns:
- the transformed value