Пример #1
0
 // -------------------------------------------------        PredefinedFunctonParams
 public static double [] PredefinedFunctonParams (DemoFuncType ftype)
 {
     double [] fParam = new double [6];
     if (ftype != DemoFuncType .Arbitrary)
     {
         int i = (int) ftype;
         for (int j = 0; j < 6; j++)
         {
             fParam [j] = fDemoParam [i, j];
         }
     }
     else
     {
         fParam = new double [6] { -1.0, 1.0, 0.5, 1.0, -1.0, 0.5 };
     }
     return (fParam);
 }
Пример #2
0
  // -------------------------------------------------        PlotOnScreen
 public PlotOnScreen (DemoFuncType type, MSPlot area)
 {
     funcType = type;
     plot = area;
 }
Пример #3
0
 // =================================================        AddDemoFunction
 // new function is added on top of the list
 private void AddDemoFunction (DemoFuncType type, MSPlot plot)
 {
     PlotOnScreen demoFunc = new PlotOnScreen (type, plot);
     plotInView .Insert (0, demoFunc);
     RefreshList ();
 }