Class JuliaSet
Performs the Julia set function.
Inherited Members
Namespace: Rebus.Server
Assembly: Rebus.Server.dll
Syntax
public class JuliaSet
Remarks
The implementation of this class was inspired by and based on this Wikipedia article.
Constructors
JuliaSet(Complex, Double)
Initializes a new instance of the JuliaSet class.
Declaration
public JuliaSet(Complex c, double r)
Parameters
Type | Name | Description |
---|---|---|
Complex | c | The complex parameer c. |
Double | r | The escape radius R. The value of R must be greater than zero, while R-squared minus R must be greater than or equal to the magnitude of the complex parameter c. |
Exceptions
Type | Condition |
---|---|
ArgumentException |
-or-
|
Properties
C
Gets the complex parameter c.
Declaration
public Complex C { get; }
Property Value
Type | Description |
---|---|
Complex | The complex parameter c. |
MaxIterations
Gets or sets the maximum number of iterations.
Declaration
public int MaxIterations { get; set; }
Property Value
Type | Description |
---|---|
Int32 | The maximum number of iterations. The default is 100. |
R
Gets the escape radius R.
Declaration
public double R { get; }
Property Value
Type | Description |
---|---|
Double | The escape radius R. |
Methods
Julia(Double, Double, Double, Double)
Performs the Julia set function.
Declaration
public double Julia(double x, double y, double width, double height)
Parameters
Type | Name | Description |
---|---|---|
Double | x | The x coordinate of the point. |
Double | y | The y coordinate of the point. |
Double | width | The width of the fractal map. |
Double | height | The height of the fractal map. |
Returns
Type | Description |
---|---|
Double | The intensity of the point. |
Julia(Double, Double, Double, Double, Double)
Performs the Julia set function.
Declaration
public double Julia(double x, double y, double width, double height, double zoom)
Parameters
Type | Name | Description |
---|---|---|
Double | x | The x coordinate of the point. |
Double | y | The y coordinate of the point. |
Double | width | The width of the fractal map. |
Double | height | The height of the fractal map. |
Double | zoom | The zoom factor of the fractal map. |
Returns
Type | Description |
---|---|
Double | The intensity of the point. |