|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Objectcommon:Generic
common:TrapShape
mt:MT_TrapShapeSextic
class
Mark Townsend, May 2008
class MT_TrapShapeSextic(common.ulb:TrapShape) {
;
; Mark Townsend, May 2008
;
public:
float func Iterate(complex pz)
TrapShape.Iterate(pz)
float theta = atan2(pz)
float radius = 4 * @a * cos(theta / 3)^3
if @trap_mode == "Radius"
return abs(cabs(pz) - radius)
else
complex p = radius * sin(theta) + flip(radius * cos(theta))
m_LastZ = p
return cabs(pz - p)
endif
endfunc
default:
title = "Sextic"
float param a
caption = "Curve radius"
default = 1
endparam
param trap_mode
caption = "Mode"
enum = "Radius" "Point"
endparam
}
| Constructor Summary | |
|---|---|
MT_TrapShapeSextic()
|
|
| 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 |
|---|
public MT_TrapShapeSextic()
| Method Detail |
|---|
public float Iterate(complex pz)
TrapShape
Iterate in class TrapShape
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||