public MatrixValue Function(ScalarValue x0, ScalarValue xn, ScalarValue y0, ScalarValue yn, ScalarValue xsteps, ScalarValue ysteps) { var xs = xsteps.GetIntegerOrThrowException("xsteps", Name); var ys = ysteps.GetIntegerOrThrowException("ysteps", Name); var m = new Mandelbrot(); return m.CalculateMatrix(x0.Re, xn.Re, y0.Re, yn.Re, xs, ys); }
public MatrixValue Function(ScalarValue x0, ScalarValue xn, ScalarValue y0, ScalarValue yn) { var m = new Mandelbrot(); var xsteps = (Int32)Math.Abs(Math.Ceiling((xn.Re - x0.Re) / 0.1)); var ysteps = (Int32)Math.Abs(Math.Ceiling((yn.Re - y0.Re) / 0.1)); return m.CalculateMatrix(x0.Re, xn.Re, y0.Re, yn.Re, xsteps, ysteps); }
public MatrixValue Function(ScalarValue start, ScalarValue end, ScalarValue steps) { var s = steps.GetIntegerOrThrowException("steps", Name); var m = new Mandelbrot(); return m.CalculateMatrix(start.Re, end.Re, start.Im, end.Im, s, s); }
public ScalarValue Function(ScalarValue x, ScalarValue y) { var m = new Mandelbrot(); return new ScalarValue(m.Run(x.Re, y.Re)); }
public ScalarValue Function(ScalarValue z) { var m = new Mandelbrot(); return new ScalarValue(m.Run(z.Re, z.Im)); }
public MatrixValue Function() { var m = new Mandelbrot(); return m.CalculateMatrix(-2.5, 1.0, -1.0, 1.0, 150, 150); }