Helper class for computing Mandelbrot samples.
sealed class
|
Mandelbrot
|
This class is intended for debugging and testing. It can be used to generate highly detailed image content and simulate heavy CPU/IO work.
public
constant
|
PMax
=
0.5
|
||
type
|
float64
|
public
constant
|
PMin
=
-2
|
||
type
|
float64
|
public
constant
|
PRange
=
2.5
|
||
type
|
float64
|
public
constant
|
QMax
=
1.25
|
||
type
|
float64
|
public
constant
|
QMin
=
-1.25
|
||
type
|
float64
|
public
constant
|
QRange
=
2.5
|
||
type
|
float64
|
The maximum number of iterations to perform per sample.
public
property
|
Iterations
{
get
set
}
|
||
type
|
int32
|
||
value
|
|
The number of iterations. |
Remarks:
The
default
value
is
1024
.
Creates a new instance of Mandelbrot.
public
constructor
|
Mandelbrot
(int32 iterations = 1024)
|
||
params
|
iterations
|
[>0]
|
The
maximum
number
of
iterations
to
perform
per
sample.
Defaults
to
1024 .
|
Computes the Mandelbrot sample at the given coordinates.
public
method
|
Compute
(float64 p,
float64 q)
|
||
type
|
float64
|
||
params
|
p
|
The Mandelbrot P-coordinate. | |
q
|
The Mandelbrot Q-coordinate. | ||
returns
|
|
The smooth Mandelbrot sample value. |