|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Objectcommon:Generic
common:TrapShape
Standard:Standard_TrapShapeHeart
class
class Standard_TrapShapeHeart(common.ulb:TrapShape) {
public:
float func Iterate(complex pz)
complex zh = real(pz) + flip(abs(imag(pz)))
; Use parentheses to force a constant expression.
zh = zh * (((0,1) ^ (@traporder / 8)) * 3 / @diameter)
return abs(real(zh) - sqr(imag(zh)) + 3)
endfunc
default:
title = "Heart"
float param diameter
caption = "Diameter"
default = 1
hint = "This is the heart diameter."
endparam
float param traporder
caption = "Order"
default = 4
hint = "This modifies the shape of the heart."
endparam
}
| Constructor Summary | |
|---|---|
Standard_TrapShapeHeart()
|
|
| 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 Standard_TrapShapeHeart()
| 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 | ||||||||