Mandelbrot

Description

sealed class Tinman.Core.Math.Mandelbrot

Helper class for computing Mandelbrot samples.

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 / Constants

PMax


public constant PMax → (0.5:float64)

Maximum value of the P-axis for the zoomed-out view.

PMin


public constant PMin → (-2:float64)

Minimum value of the P-axis for the zoomed-out view.

PRange


public constant PRange → (2.5:float64)

Value of PMax minus PMin.

QMax


public constant QMax → (1.25:float64)

Maximum value of the Q-axis for the zoomed-out view.

QMin


public constant QMin → (-1.25:float64)

Minimum value of the Q-axis for the zoomed-out view.

QRange


public constant QRange → (2.5:float64)

Value of QMax minus QMin.

Public / Constructors

Mandelbrot


public constructor Mandelbrot → (1)

iterations opt : int32 = 1024

[>0]
The maximum number of iterations to perform per sample.

Creates a new instance of Mandelbrot.

Public / Methods

Compute


[Pure]
public method Compute → (2)

in : float64

The Mandelbrot P-coordinate.

in : float64

The Mandelbrot Q-coordinate.

returns → float64

The smooth Mandelbrot sample value.

Computes the Mandelbrot sample at the given coordinates.

Public / Attributes

Iterations


public attribute Iterations → (get,set)

value : int32

[>0]
The number of iterations.

The maximum number of iterations to perform per sample.

The default value is 1024.