예제 #1
0
        public EllipseParam[] GetEllipses(string[] array, double ts)
        {
            EllipseParam[] param = new EllipseParam[array.Length];

            double sd = textBox6.Text.ToDouble();

            Parallel.For(0, array.Length, (int i) =>
            {
                string[] st = array[i].Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);

                var Vgb  = (st[4].ToDouble(), st[5].ToDouble());
                double s = Vgb.Item1 * (Vgb.Item2 - ts /*(2.5*st[10].ToDouble()+5e-5)*/);
                param[i] = new EllipseParam(new Point(st[0].ToDouble(), st[1].ToDouble()),
                                            new Point(st[2].ToDouble(), st[3].ToDouble()), s,
                                            Библиотека_графики.Other.colors[st[6].ToInt32()], $"{st[7]} {st[8]} {st[9]}", FuncMethods.GaussBell2(s, sd * s));
            });