## mmf Class MMF_TrapShapeFnz

```Object
common:Generic
common:TrapShape
mmf:MMF_TrapShapeFnz
```

`class TrapShape:MMF_TrapShapeFnz`

Simple functions of z converted to floats.

Ultra Fractal Source
``` class MMF_TrapShapeFnz(common.ulb:TrapShape) {
; Simple functions of z converted to floats.<br>
public:
import "common.ulb"

func MMF_TrapShapeFnz(Generic pparent)
TrapShape.TrapShape(pparent)
endfunc

float func Iterate(complex pz)
TrapShape.Iterate(pz)
if @mode=="real(fn(z))"
return real(@fn(pz))
elseif @mode=="abs(real(fn(z)))"
return abs(real(@fn(pz)))
elseif @mode=="imag(fn(z))"
return imag(@fn(pz))
elseif @mode=="abs(imag(fn(z)))"
return abs(imag(@fn(pz)))
else;if @mode=="cabs(fn(z))"
return cabs(@fn(pz))
endif
endfunc

default:
title = "Functions"
text = "Intended for use with 'MMF Smooth Orbit Traps (Gradient)' or \
similar smoothing formulas since smoothing is usually required."
func fn
caption = "Function to use"
default = sqrt()
endfunc
int param mode
caption = "Method"
enum = "real(fn(z))" "abs(real(fn(z)))" "imag(fn(z))" \
"abs(imag(fn(z)))" "cabs(fn(z))"
default = 0
hint = "Original inspired by the idea of trapping the values of \
atan2(z)."
endparam
}
```

Constructor Summary
`MMF_TrapShapeFnz()`

`MMF_TrapShapeFnz(Generic pparent)`

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

### MMF_TrapShapeFnz

`public MMF_TrapShapeFnz(Generic pparent)`

### MMF_TrapShapeFnz

`public MMF_TrapShapeFnz()`
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`