• API Documentation
Show / Hide Table of Contents
  • Rebus
    • Arguments
    • Biome
    • CantorPairing
    • CommandRequest
    • CommandResponse
    • CommandType
    • Commodity
    • Configuration
    • ConflictEventArgs
    • Depths
    • Economy
    • Fleet
    • HexPoint
    • IGameService
    • ILoginService
    • Player
    • Unit
    • User
    • Zone
    • ZoneInfo
  • Rebus.Client
    • GraphicsEngine
    • Layout
    • RpcClient
    • ZoneVisualizer
  • Rebus.Client.Lenses
    • BiomeLens
    • ConstellationLens
    • Lens
    • PopulationLens
    • StarLens
  • Rebus.Server
    • AStarSearch
    • EvaluationContext
    • FisherYatesShuffle
    • JuliaSet
    • PowerSet
  • Rebus.Server.Considerations
    • Agent
    • Behavior
    • BehaviorCollection
    • Consideration
    • ConsiderationCollection
    • FunctionConsideration
    • LinearConsideration
    • QuadraticConsideration
  • Rebus.Server.Functions
    • IFunctions<T>
  • System
    • NegativeExponentialRandom
  • System.Text.Json.Serialization.Converters
    • ComplexConverter
    • CultureInfoConverter
    • IPAddressConverter

Class JuliaSet

Performs the Julia set function.

Inheritance
Object
JuliaSet
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
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

r is less than or equal to zero.

-or-

r-squared minus r is less than the magnitude of c.

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.

See Also

Julia set - Wikipedia
In This Article
Back to top © 2021-2022 Ishan Pranav. All rights reserved. Licensed under the MIT License.