for int knots Length double t_min knots double t_max knots double sum_

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
for (int i = 1; i < knots.Length; i++)
{
double t_min = knots[i - 1];
double t_max = knots[i];
double sum_x = 0;
double sum_y = 0;
while (t_min < t_max)
{
for (int j = 0; j < mea.GetLength(0) - 1; j++)
{
double Nik = getNik(t_min, i, k);
sum_x += mea[j, 0] * Nik;
sum_y += mea[j, 1] * Nik;
t_min += 0.01;
}
g.DrawEllipse(new Pen(new SolidBrush(Color.Blue), 2), new RectangleF(new PointF((float)(sum_x), (float)(mea[i, 1] * sum_y)), new Size(2, 2)));
}
}