Beispiel #1
0
 public void StartUp()
 {
     cop    = new ComplexOp();
     hardd  = Decimal.MaxValue / 100;
     der0   = DerivativeC(set.poly);
     donuts = new double[3];
     doom   = new double[3];
     conv   = new ColorConv();
     cook   = new ColorUtils();
 }
Beispiel #2
0
 public void MakePoints()
 {
     stopwatch = new Stopwatch();
     starttime = DateTime.Now;
     stopwatch.Start();
     nsteps    = set.nsteps;
     random    = new System.Random();
     ntot      = nsteps * nsteps;
     opm       = new PolyOp();
     cop       = new ComplexOp();
     boundinds = new List <int>();
     boundinds.Clear();
     opm.set    = set;
     points     = new List <MPoint>();
     zoomfactor = (Decimal)(Math.Pow((double)set.zoomfactoreach, zoomnum));
     opm.StartUp();
     if (zoomnum == 0)
     {
         lastplug     = new Complex();
         lastplug.num = new Decimal[2] {
             Decimal.Zero, Decimal.Zero
         };
         lastplug.cpow = 0;
         starter       = new Decimal[2] {
             set.boundingrec[0], set.boundingrec[1]
         };
         deltax = (set.boundingrec[2] - set.boundingrec[0]) / (Decimal)set.nsteps;
         deltay = (set.boundingrec[3] - set.boundingrec[1]) / (Decimal)set.nsteps;
         curpos = new Decimal[2] {
             set.boundingrec[0], set.boundingrec[1]
         };
         GoThrough();
     }
     else
     {
         deltax  = (set.boundingrec[2] - set.boundingrec[0]) / (Decimal)(set.nsteps * zoomfactor);
         deltay  = (set.boundingrec[3] - set.boundingrec[1]) / (Decimal)(set.nsteps * zoomfactor);
         starter = new Decimal[2] {
             lastplug.num[0] - (Decimal)(deltax * set.nsteps / 2), lastplug.num[1] - (Decimal)(deltay * set.nsteps / 2)
         };
         curpos = new Decimal[2] {
             lastplug.num[0] - (Decimal)(deltax * set.nsteps / 2), lastplug.num[1] - (Decimal)(deltay * set.nsteps / 2)
         };
         GoThrough();
     }
     stopwatch.Stop();
     dt = stopwatch.Elapsed;
     stopwatch.Reset();
     endtime = DateTime.Now;
 }