private void PlotConstantFunction(IChartAdapter2D adapter, Implicit2DParameters implicitParameters) { ConstantFunctionPlotter plotter = new ConstantFunctionPlotter((Constant)implicitParameters.Function); double[] result = null; //result = plotter.Plot() adapter.Plot(result, _series); }
private void PlotExplicitFunction(IChartAdapter2D adapter, Implicit2DParameters implicitParameters) { Explicit2DFunctionPlotter plotter = new Explicit2DFunctionPlotter((Explicit2DFunction)implicitParameters.Function); double[] result = null; plotter.Plot(implicitParameters.PointA, implicitParameters.PointB, implicitParameters.AreaSize); adapter.Plot(result, _series); }
private void PlotImplicit2DFunction(IChartAdapter2D adapter, Implicit2DParameters implicitParameters) { Implicit2DFunctionPlotter plotter = new Implicit2DFunctionPlotter((Implicit2DFunction)implicitParameters.Function); plotter.GridFactor = implicitParameters.GridFactor; Point2D[] resultPoints = plotter.Plot( implicitParameters.PointA, implicitParameters.PointB, implicitParameters.AreaSize); adapter.SetAxes(implicitParameters.PointA.X, implicitParameters.PointB.X, implicitParameters.PointA.Y, implicitParameters.PointB.Y); adapter.Plot(resultPoints, _series); }