public PlotComplex(PictureBox dom, PictureBox codom, TextBox coords) { _domPlot = new Plotter2d(dom, 10.0, 10.0, this); _codomPlot = new Plotter2d(codom, 600.0, 600.0, this); _coords = coords; ViewReckoner vr = _domPlot.View; Point oc = vr.VToC(_domPlot.Origin); //Shape mapper = new Line(oc, new Point(oc.X + vr.CXSize / 4, oc.Y - vr.CYSize / 4)); //Shape mapper = new Grid(oc.X + 10, oc.X + vr.CXSize / 4, 4, oc.Y + 10, oc.Y - vr.CYSize / 4, 4); //Shape mapper = new Circle(oc, vr.CXSize / 10); //_plot1.SetMapper(mapper); //_fn = new ComplexZ2(); _fn = new ComplexZ(); //_fn = new ComplexSinInverseZ(); //_fn = new ComplexSinZ2(); }
public void SetFunction(ComplexMathFunction fn) { _fn = fn; }