Example #1
0
 public JuliaSet(ComplexNumber c)
 {
     InitializeComponent();
     CRealTb.Text   = Convert.ToString(c.GetReal());
     CImagTb.Text   = Convert.ToString(c.GetImaginary());
     this.ZExponent = 2;
 }
Example #2
0
        public override bool Equals(object obj)
        {
            if (obj == null || this.GetType() != obj.GetType())
            {
                return(false);
            }

            ComplexNumber ComparisonObject = obj as ComplexNumber;

            return((ComparisonObject.GetReal() == this.GetReal()) && (ComparisonObject.GetImaginary() == this.GetImaginary()));
        }
Example #3
0
 public void Mandelbrot_MouseMove(object sender, MouseEventArgs e)
 {
     if (IsConverterInitialized)
     {
         double        x = Convert.ToDouble(e.X);
         double        y = Convert.ToDouble(e.Y);
         ComplexNumber i = new ComplexNumber(x, y);
         ComplexNumber screenCoordinates = Converter.GetAbsoluteMathsCoord(i);
         XCoordLabel.Text = "X Coordinate: " + screenCoordinates.GetReal();
         YCoordLabel.Text = "Y Coordinate: " + screenCoordinates.GetImaginary();
     }
 }