public Line(Func <float, float, float, float> dirivX, Func <float, float, float, float> dirivY, float stepH, PointF nullPoint, Color color, Action <LinkedList <PointF>, Color> drawing, Action <PointF[], Color> all, int across) { DrawingsAll = all; Drawing = drawing; Points = null; ListPoints = new LinkedList <PointF>(); ColorLine = color; Method = new MethodRunge(dirivX, dirivY, stepH, nullPoint); Across = across; if (Across <= 0) { string[] str = stepH.ToString().Split(','); if (str.Length == 2 && str[1].Length > 3) { Across = (int)Math.Pow(10, str[1].Length - 3); } else { Across = 1; } } }
public Line(Func <float, float, float, float> dirivX, Func <float, float, float, float> dirivY, float stepH, PointF nullPoint, Color color, int count, Action <PointF[], Color> all) { DrawingsAll = all; ColorLine = color; Method = new MethodRunge(dirivX, dirivY, stepH, nullPoint); Points = Method.PointsSystem(count); }